Andy Clark wrote:
Dennis Sosnoski wrote:
I'm getting an exception thrown running Xerces2 (2.0.0) DOMParser:
This is very strange because I tried your document with Xerces
2.0.0 and I don't see these problems. (I'm using the dom.*
samples to test it.)
What is the exact invocation code you are using?
Here's the code (with classpath including xmlParserAPIs.jar and
xercesImpl.jar):
if (m_parser == null) {
m_parser = new DOMParser();
try {
m_parser.setFeature
("http://xml.org/sax/features/validation", false);
m_parser.setFeature
("http://xml.org/sax/features/namespaces", true);
} catch (Exception ex) {
ex.printStackTrace(System.err);
System.exit(0);
}
}
Object doc = null;
try {
m_parser.parse(new InputSource(in));
doc = m_parser.getDocument();
m_parser.reset();
} catch (Exception ex) {
ex.printStackTrace(System.err);
System.exit(0);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]