Xml Parsing with Symbol
Hello,
I have a element with name ClientId and having value as:- rohan&meta.
It gives Sax Parser Exception.
So is there any trick for string with value having symbol &.
Hello,
I have a element with name ClientId and having value as:- rohan&meta.
It gives Sax Parser Exception.
So is there any trick for string with value having symbol &.
Trick? No, there's no trick. There is a rule in XML that you must escape the & character in a text node (I suppose that's what you meant by the "value" of your element). You have to use & instead. But that isn't a trick. Read more about it here:
http://www.w3schools.com/xml/xml_cdata.asp