Re: [json-lib-user] XMLSerializer usage for xml text to json conversion
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2008-02-14 20:16:08
|
Please send an snippet of your XML (a failing test would be better! =-)) Your report has little information that can be used to pinpoint the problem, thanks! Cheers, Andres ------------------------------------------- http://jroller.com/aalmiray http://www.linkedin.com/in/aalmiray -- What goes up, must come down. Ask any system administrator. There are 10 types of people in the world: Those who understand binary, and those who don't. To understand recursion, we must first understand recursion. ----- Original Message ---- From: Sudharshan Pollapally <pol...@gm...> To: jso...@li... Sent: Wednesday, February 13, 2008 2:31:43 PM Subject: [json-lib-user] XMLSerializer usage for xml text to json conversion Hi, I am trying to use json-lib 2.2.1 XMLSerializer.read(xmlString) to convert xml text to json, similar to org.json.XML.toJSONObject(xmlString). I see at least the following things missing in the json generated by XMLSerializer: 1) the root element of the input xml is not included in the result json. 2) My input xml text which has nothing to do with json syntax, has multiple "<features>" nodes, all these nodes seems be omitted while conversion. I tried the options mentioned at http://sourceforge.net/tracker/index.php?func=detail&aid=1813520&group_id=171425&atid=857931 without luck. I am I missing something with this relatively simple usecase? Thanks for the help. -polapali -----Inline Attachment Follows----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -----Inline Attachment Follows----- _______________________________________________ json-lib-user mailing list jso...@li... https://lists.sourceforge.net/lists/listinfo/json-lib-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |