Tuesday 15 May 2012

android - How to parse xml having only child nodes using SAX Parser -



android - How to parse xml having only child nodes using SAX Parser -

this xml info server. when seek parse using sax parser gives exception in end document saying "junk info found". reason is: tag1 considered startdocument , hence when first closing tag1 found considers enddocument found , rest info considered junk. how can go on parsing? solution this?

<tag1 id ="browse"> <title id = "title">xml</title> <text>text001<text> <text>text002</text> </tag1><tag1 id="status"> <title id = "title">xml source</title> <text>text003<text> <text>text004</text> </tag1>

ps: can't modify xml response server. response chunks of kid nodes without enclosing parent tag. java applet have uses property called: "parser.setproperty("http://apache.org/xml/features/continue-after-fatal-error", boolean.valueof(true));" works fine. gives saxnotfoundexception in android

android

No comments:

Post a Comment