org.apache.xerces.impl.xs.dom
Class DOMParser
java.lang.Object
|
+--org.apache.xerces.parsers.XMLParser
|
+--org.apache.xerces.parsers.AbstractXMLDocumentParser
|
+--org.apache.xerces.parsers.AbstractDOMParser
|
+--org.apache.xerces.parsers.DOMParser
|
+--org.apache.xerces.impl.xs.dom.DOMParser
- All Implemented Interfaces:
- org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler
- public class DOMParser
- extends DOMParser
A dom parser used to parse schema documents into DOM trees
- Version:
- $Id: DOMParser.java,v 1.3 2002/04/03 23:48:27 elena Exp $
- Author:
- Sandy Gao, IBM
Fields inherited from class org.apache.xerces.parsers.AbstractDOMParser |
CORE_DOCUMENT_CLASS_NAME, CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fBaseURIStack, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentEntityDecl, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDeferredEntityDecl, fDocument, fDocumentClassName, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fFirstChunk, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDocument, fInDTD, fInDTDExternalSubset, fInternalSubset, fNamespaceAware, fNormalizeData, fStringBuffer, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, NORMALIZE_DATA |
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler |
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler |
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
Constructor Summary |
DOMParser()
Constructs a DOM parser using the dtd/xml schema parser configuration. |
Method Summary |
protected org.w3c.dom.Element |
createElementNode(org.apache.xerces.xni.QName element)
|
void |
setPool(DOMNodePool nodePool)
|
void |
startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.Augmentations augs)
The start of the document. |
Methods inherited from class org.apache.xerces.parsers.AbstractDOMParser |
attributeDecl, characters, comment, createAttrNode, doctypeDecl, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, endPrefixMapping, externalEntityDecl, getDocument, getDocumentClassName, handleBaseURI, handleBaseURI, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, reset, setCharacterData, setDocumentClassName, startAttlist, startCDATA, startConditional, startDTD, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, startPrefixMapping, textDecl, unparsedEntityDecl, xmlDecl |
Methods inherited from class org.apache.xerces.parsers.XMLParser |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTITY_MANAGER
protected static final java.lang.String ENTITY_MANAGER
- Property identifier: entity manager.
- See Also:
- Constant Field Values
DOCUMENT_CLASS
protected static final java.lang.String DOCUMENT_CLASS
- Property identifier: DOM document class name.
- See Also:
- Constant Field Values
DEFER_EXPANSION
protected static final java.lang.String DEFER_EXPANSION
- Feature identifier: DOM Defer node expansion.
- See Also:
- Constant Field Values
fLocator
protected org.apache.xerces.xni.XMLLocator fLocator
fDocumentImpl
public DocumentImpl fDocumentImpl
DOMParser
public DOMParser()
- Constructs a DOM parser using the dtd/xml schema parser configuration.
setPool
public void setPool(DOMNodePool nodePool)
startDocument
public void startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- The start of the document.
- Specified by:
startDocument
in interface org.apache.xerces.xni.XMLDocumentHandler
- Overrides:
startDocument
in class AbstractDOMParser
- Parameters:
locator
- The system identifier of the entity if the entity
is external, null otherwise.encoding
- The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal entities or a document entity that is
parsed from a java.io.Reader).augs
- Additional information that may include infoset augmentations
- Throws:
org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.
createElementNode
protected org.w3c.dom.Element createElementNode(org.apache.xerces.xni.QName element)
- Overrides:
createElementNode
in class AbstractDOMParser
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.