#64 InputSource character buffer size problem

closed
nobody
1
2007-08-28
2006-03-05
Anonymous
No

I parse a XML document with SAX2 via InputSource:

myParser.parse(new InputSource(xmlFile.toURL
().openStream()));

I get a tag's value splitted into two parts using the
callback "public void characters(...)". The first part
is in the character array on position 2044 with length
4 "16.0" and the second part "5.2005" on position 0
with length 6. It should be a German date
value "16.05.2005" if receiving in one part.
This behavior is other than in SAX1 parsers. It seams
to relate to the character array size 2048? Ho can I
avoid this splitting?

Discussion

    • priority: 5 --> 1
     
    • status: open --> closed