I am storing data in xml file, In one of the node I have to store an url which consists of special character like & I used & instead of & and xml shows no error but when I did SAX parsing String value returned within the node is the string which is after &,
I am guessing the way I am storing the url is not proper.
What is right way of storing an url in xml.
Currently I am storing as,
<param>http://www.example.com?param1=abc&v=1</param>
XML has no errors, but SAX parser won't return the whole url.
EDIT: I have semicolon after & in the url, I missed it the first time.
Solution: It was not the problem with XML , but the way I handled XML in XMLHandler,
I was using new String(ch,start,length);
Now changed to stringBuilder();