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.2 2002/02/18 20:59:27 sandygao Exp $
- Author:
- Sandy Gao, IBM
Fields inherited from class org.apache.xerces.parsers.AbstractDOMParser |
CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDocument, fDocumentClassName, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDocument, fInDTDExternalSubset, fInternalSubset, fNamespaceAware, fNormalizeData, 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 |
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, endCDATA, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endPrefixMapping, externalEntityDecl, getDocument, getDocumentClassName, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, reset, setDocumentClassName, startCDATA, startDTD, startElement, startExternalSubset, startGeneralEntity, textDecl, unparsedEntityDecl, xmlDecl |
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, endParameterEntity, ignoredCharacters, occurrence, pcdata, separator, startAttlist, startConditional, startContentModel, startGroup, startParameterEntity, startPrefixMapping |
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.
DOCUMENT_CLASS
protected static final java.lang.String DOCUMENT_CLASS
- Property identifier: DOM document class name.
DEFER_EXPANSION
protected static final java.lang.String DEFER_EXPANSION
- Feature identifier: DOM Defer node expansion.
fLocator
protected org.apache.xerces.xni.XMLLocator fLocator
fDocumentImpl
protected DocumentImpl fDocumentImpl
DOMParser
public DOMParser()
- Constructs a DOM parser using the dtd/xml schema parser configuration.
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.
- 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.