D
Duane Evenson
I am trying to parse a zipped XML file (open document spreadsheet). It is
composed of one long line of code.
The SAX parser takes character arrays of only 2048 characters. When a
character argument spans this break, the result is a second parser call to
characters(). The character data ends up being split into two components.
What can I do to fix this?
Here's the pertinent portion of my code:
ZipFile zf;
DefaultHandler handler = new ParseHandler();
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
try {
zf = new ZipFile(DATA_FILE_NAME);
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(zf.getInputStream(zf.getEntry(CONTENT_FILE_NAME)),
handler);
} catch ...
TIA
composed of one long line of code.
The SAX parser takes character arrays of only 2048 characters. When a
character argument spans this break, the result is a second parser call to
characters(). The character data ends up being split into two components.
What can I do to fix this?
Here's the pertinent portion of my code:
ZipFile zf;
DefaultHandler handler = new ParseHandler();
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
try {
zf = new ZipFile(DATA_FILE_NAME);
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(zf.getInputStream(zf.getEntry(CONTENT_FILE_NAME)),
handler);
} catch ...
TIA