I have an xml that i am parsing there is a field that contains very long text, but somehow it is dropped by the parser, is it so because i am using just string to get those character to should i use string buffer or builder. What i want is to extract value by tag only.
@Override
public void characters(char[] ch, int start, int length)
throws SAXException {
if (elementOn) {
// its not reading element value, though tag is read.
elementValue = new String(ch, start, length);
elementOn = false;
}
}
This is the text:
<description>
<![CDATA[
Former CPI MLA Manish Kunjam, who returned on Thursday after, theis is a long long text very long that its being dropped.......so what can be done...................................................................................................
]]>
</description>
Thanks plz guide me.....