Reputation: 689
I am trying to parse xml file which contains some special character if (($a > 7))
I am using StringBuffer to read these characters but its not reading the whole string. All the characters after >
has been chopped off. All its returning me is if(($a
. Please suggest me.
Thanks
Upvotes: 0
Views: 382
Reputation: 53694
When you parse XML with SAX, you can get the text of an element in multiple method calls. you must accumulate the text across all the calls until you get the endElement
call.
Upvotes: 3