Hello all,
I've a question concerning DOM build speed. In the version 2.6.2 version of
Xerces, parsing a simple 825 byte xml file takes between 300 and 400 ms.
I'm building the DOM from a java.io.Reader. The parse time is independent of
the type of reader (StringReader, FileReader).
This is the code I use for creating the builder:
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
System.out.println(factory);
factory.setNamespaceAware(true);
factory.setValidating(false);
factory.setExpandEntityReferences(false);
docbuilder = factory.newDocumentBuilder();
docbuilder.setErrorHandler(errorHandler);
Is the DOM build time always so slow? I've read some benchmarks on the web
that were notably faster.
Cheers, Jos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]