sandygao 2002/12/13 09:23:24
Added: java/src/org/apache/xerces/impl/xs/opti AttrImpl.java
DefaultDocument.java DefaultElement.java
DefaultNode.java DefaultXMLDocumentHandler.java
ElementImpl.java NamedNodeMapImpl.java
NodeImpl.java SchemaDOM.java SchemaDOMParser.java
SchemaParsingConfig.java
Log:
A table-based implementation (DTM) of DOM, to improve schema loading
perfomance. The code was originally developped by Rahul Srivastava in
a branch of Xerces. Thx Rahul.
The main differences from Rahul's code:
1. DefaultDocument extends NodeImpl now (instead of DefaultNode),
to avoid some casting.
2. DefaultXMLDocumentHandler is modifed to reflect changes in XNI.
3. ElementImpl stores the line/column information, to better error reporting.
4. SchemaDOM parser is modified to check the error where non-whitespace
textural content appears within schema elements other than annotations.
There are still things that need to be implemented:
1. How to store content of annotation elements. To expose annotation,
we need to provide all information about it, including its textural content, PIs,
and even comments. But such information is not currently stored in DTM.
(This is not a problem for now, since we don't expose annotations yet.)
2. Implement a DTMNodePool to further improve the performance by reusing
the node objects.
Revision Changes Path
1.2 +124 -0 xml-xerces/java/src/org/apache/xerces/impl/xs/opti/AttrImpl.java
1.2 +177 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultDocument.java
1.2 +171 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultElement.java
1.2 +208 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultNode.java
1.2 +907 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.java
1.2 +280 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/ElementImpl.java
1.2 +124 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/NamedNodeMapImpl.java
1.2 +123 -0 xml-xerces/java/src/org/apache/xerces/impl/xs/opti/NodeImpl.java
1.2 +268 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/SchemaDOM.java
1.2 +283 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java
1.2 +802 -0
xml-xerces/java/src/org/apache/xerces/impl/xs/opti/SchemaParsingConfig.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]