As I am new to Android development,
I have used SAX xml parsing in my Android app.
It is working fine but in URL when it got "&" symbol it simply discard the next all url part.
I think not sure is this problem of charcaters method of that DefaultHandler
class?
public void characters(char[] ch, int start, int length)throws SAXException {
if (currentElement)
{
currentValue = new String(ch, start, l开发者_C百科ength);
currentElement = false;
}
}
thanks for the help.
Replace "&" characters in you XML with escape sequences. XML file shouldn't contain "&" characters out of CDATA fields.
精彩评论