I use the SAX parser (on android) to parse the XML file from the WebService. On some elements, CDATA is truncated and not completed, for example. The XML file contains data such as
<name><![CDATA[Gölsder und Ginck GmbH]]></name>
and after parsing the xml file with
public void characters(char[] ch, int start, int length)
throws SAXException {
super.characters(ch, start, length);
String text = new String(ch, start, length);
the text contains only "Gölsder und Gin" (first 15 characters). I debugged it using eclipse, and I see that the whole line is not contained in the argument to the char [] ch "method. Therefore, the syntax analysis itself has an error
source
share