This content has been marked as final. Show 4 replies
kibreab_tekle wrote:So it should, because that's not valid XML. The problem is the ampersands. You need either to replace & with & or to wrap the path in <![CDATA[ ]]> brackets.
I am using Kxml parser to parse xml data from a server. It is working for all tags gets the information <>...</>. BUT when I try to get the tag
it generates the following error, and I couldnot solve this for many days. Can somebody help me? The error is :
If it's a simple message you might get away with interpreting it yourself using regular expressions. Otherwise I think your best chance would be to pre-process it into valid XML. Something like String.replaceAll("&(\\w+)=", "&$1=") might do it, depending on what else is in there.
And I'd probably complain to the service provider.
Edited by: malcolmmc on Jun 3, 2009 9:42 AM
Because forum ate & as usual