Parses JavaScript objects into XML