public class

DefaultDocument

extends NodeImpl
implements Document
java.lang.Object
   ↳ org.apache.xerces.impl.xs.opti.DefaultNode
     ↳ org.apache.xerces.impl.xs.opti.NodeImpl
       ↳ org.apache.xerces.impl.xs.opti.DefaultDocument
Known Direct Subclasses

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Constructors
DefaultDocument()
Public Methods
Node adoptNode(Node source)
DOM Level 3
Attr createAttribute(String name)
Attr createAttributeNS(String namespaceURI, String qualifiedName)
CDATASection createCDATASection(String data)
Comment createComment(String data)
DocumentFragment createDocumentFragment()
Element createElement(String tagName)
Element createElementNS(String namespaceURI, String qualifiedName)
EntityReference createEntityReference(String name)
ProcessingInstruction createProcessingInstruction(String target, String data)
Text createTextNode(String data)
DocumentType getDoctype()
Element getDocumentElement()
String getDocumentURI()
The location of the document or null if undefined.
DOMConfiguration getDomConfig()
The configuration used when Document.normalizeDocument is invoked.
Element getElementById(String elementId)
NodeList getElementsByTagName(String tagname)
NodeList getElementsByTagNameNS(String namespaceURI, String localName)
DOMImplementation getImplementation()
String getInputEncoding()
boolean getStrictErrorChecking()
An attribute specifying whether errors checking is enforced or not.
String getXmlEncoding()
public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }
boolean getXmlStandalone()
An attribute specifying, as part of the XML declaration, whether this document is standalone.
String getXmlVersion()
An attribute specifying, as part of the XML declaration, the version number of this document.
Node importNode(Node importedNode, boolean deep)
void normalizeDocument()
DOM Level 3
Node renameNode(Node n, String namespaceURI, String name)
DOM Level 3
void setDocumentURI(String documentURI)
The location of the document or null if undefined.
void setStrictErrorChecking(boolean strictErrorChecking)
An attribute specifying whether errors checking is enforced or not.
void setXmlStandalone(boolean standalone)
An attribute specifying, as part of the XML declaration, whether this document is standalone.
void setXmlVersion(String version)
An attribute specifying, as part of the XML declaration, the version number of this document.
[Expand]
Inherited Methods
From class org.apache.xerces.impl.xs.opti.NodeImpl
From class org.apache.xerces.impl.xs.opti.DefaultNode
From class java.lang.Object
From interface org.w3c.dom.Document
From interface org.w3c.dom.Node

Public Constructors

public DefaultDocument ()

Public Methods

public Node adoptNode (Node source)

DOM Level 3

Throws
DOMException

public Attr createAttribute (String name)

Throws
DOMException

public Attr createAttributeNS (String namespaceURI, String qualifiedName)

Throws
DOMException

public CDATASection createCDATASection (String data)

Throws
DOMException

public Comment createComment (String data)

public DocumentFragment createDocumentFragment ()

public Element createElement (String tagName)

Throws
DOMException

public Element createElementNS (String namespaceURI, String qualifiedName)

Throws
DOMException

public EntityReference createEntityReference (String name)

Throws
DOMException

public ProcessingInstruction createProcessingInstruction (String target, String data)

Throws
DOMException

public Text createTextNode (String data)

public DocumentType getDoctype ()

public Element getDocumentElement ()

public String getDocumentURI ()

The location of the document or null if undefined.
Beware that when the Document supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.

public DOMConfiguration getDomConfig ()

The configuration used when Document.normalizeDocument is invoked.

public Element getElementById (String elementId)

public NodeList getElementsByTagName (String tagname)

public NodeList getElementsByTagNameNS (String namespaceURI, String localName)

public DOMImplementation getImplementation ()

public String getInputEncoding ()

public boolean getStrictErrorChecking ()

An attribute specifying whether errors checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any DOMException. In case of error, the behavior is undefined. This attribute is true by defaults.

public String getXmlEncoding ()

public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }

public boolean getXmlStandalone ()

An attribute specifying, as part of the XML declaration, whether this document is standalone.
This attribute represents the property [standalone] defined in .

public String getXmlVersion ()

An attribute specifying, as part of the XML declaration, the version number of this document. This is null when unspecified.
This attribute represents the property [version] defined in .

Throws
DOMException NOT_SUPPORTED_ERR: Raised if the version is set to a value that is not supported by this Document.

public Node importNode (Node importedNode, boolean deep)

Throws
DOMException

public void normalizeDocument ()

DOM Level 3

public Node renameNode (Node n, String namespaceURI, String name)

DOM Level 3

Throws
DOMException

public void setDocumentURI (String documentURI)

The location of the document or null if undefined.
Beware that when the Document supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.

public void setStrictErrorChecking (boolean strictErrorChecking)

An attribute specifying whether errors checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any DOMException. In case of error, the behavior is undefined. This attribute is true by defaults.

public void setXmlStandalone (boolean standalone)

An attribute specifying, as part of the XML declaration, whether this document is standalone.
This attribute represents the property [standalone] defined in .

public void setXmlVersion (String version)

An attribute specifying, as part of the XML declaration, the version number of this document. This is null when unspecified.
This attribute represents the property [version] defined in .

Throws
DOMException NOT_SUPPORTED_ERR: Raised if the version is set to a value that is not supported by this Document.