Reputation: 3583
I need to parse this xml. I am trying dom parser.
I am not able to put html tags in CDATA becuase the result is fetched from a webservice.
<?xml version="1.0" encoding="UTF-8" ?>
<sendgps>
<pin>1231771972</pin>
<deviceid>9774d56d682e549c</deviceid>
<balance>0.50 </balance>
<msg><b>This is a</b> test. <a href="http://www.google.com">Click</a> to go to website<br></msg>
<errorcode>0</errorcode>
</sendgps>
Upvotes: 1
Views: 616
Reputation: 9368
I faced similar problem. What I am doing is
Upvotes: 0
Reputation: 887295
You should complain to the webservice.
If they continue lying about their output format, use JSoup.
Upvotes: 2