Parsing erroneous XML

Laique

New Member
I have a problem. I am calling a link which is returning XML. I have to parse this xml but the xml is not properly formatted. The xml is shown below:
\[code\]<string> <?xml version="1.0" encoding="utf-16" ?> <tag1>TAG1</tag1> <tag2>TAG2</tag2> <tag3>TAG3</tag3> <tag4>TAG4</tag4></string> \[/code\]
I have no option but to parse this errorneous xml any how.
I am getting InputStream, is this InputStream can be changed on the fly?

Any solution to the above mentioned problem would be appreciated.
 
Back
Top