H
hamacher
I am SAX pasring an XML file using a schema (Xerces, XMLReader). As I
understand SAX, it creates a single char[] that holds every character
in the document. However, when I debug my code (in debug mode), it
shows different arrays being used as an argument to characters(ch,
start, length). The result is an eventual NumberFormatException.
Unfortunately, I am not able to show you my code. However, this
behavior started when I switched from WebSphere 4.0 to Tomcat 5.0 using
the same version of Xerces.
It is as if the parser started to perceive my XML as multiple
documents. The arrays often contain whitespace, even though I use an
empty ignoreWhitespace() method.
Anybody relate to any part of this?
understand SAX, it creates a single char[] that holds every character
in the document. However, when I debug my code (in debug mode), it
shows different arrays being used as an argument to characters(ch,
start, length). The result is an eventual NumberFormatException.
Unfortunately, I am not able to show you my code. However, this
behavior started when I switched from WebSphere 4.0 to Tomcat 5.0 using
the same version of Xerces.
It is as if the parser started to perceive my XML as multiple
documents. The arrays often contain whitespace, even though I use an
empty ignoreWhitespace() method.
Anybody relate to any part of this?