public class DOMDocument extends DefaultDocument implements Document
DOMDocument
implements an XML document which supports the W3C
DOM API.
EMPTY_ITERATOR, EMPTY_LIST
encoding
DEFAULT_CONTENT_LIST_SIZE
NODE_TYPE_NAMES
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
Constructor and Description |
---|
DOMDocument() |
DOMDocument(DOMDocumentType docType) |
DOMDocument(DOMElement rootElement) |
DOMDocument(DOMElement rootElement,
DOMDocumentType docType) |
DOMDocument(String name) |
DOMDocument(String name,
DOMElement rootElement,
DOMDocumentType docType) |
addDocType, addNode, addNode, clearContent, clone, contentList, getDocType, getEntityResolver, getName, getRootElement, getXMLEncoding, processingInstruction, processingInstructions, processingInstructions, removeNode, removeProcessingInstruction, rootElementAdded, setContent, setDocType, setDocumentFactory, setEntityResolver, setName
accept, add, addComment, addElement, addElement, addElement, addProcessingInstruction, addProcessingInstruction, asXML, asXPathResult, checkAddElementAllowed, childAdded, childRemoved, getDocument, getNodeType, getPath, getStringValue, getUniquePath, normalize, remove, setRootElement, setXMLEncoding, toString, write
add, add, add, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getText, getTextTrim, hasContent, indexOf, invalidNodeTypeAddException, isReadOnly, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructions
createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getParent, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
adoptNode, getDocumentURI, getDomConfig, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion
compareDocumentPosition, getBaseURI, getFeature, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, setTextContent, setUserData
add, add, add, appendContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructions
createXPath, detach, getNodeTypeName, getParent, getPath, getText, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf
public DOMDocument()
public DOMDocument(String name)
public DOMDocument(DOMElement rootElement)
public DOMDocument(DOMDocumentType docType)
public DOMDocument(DOMElement rootElement, DOMDocumentType docType)
public DOMDocument(String name, DOMElement rootElement, DOMDocumentType docType)
public String getNamespaceURI()
public String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMException
public String getLocalName()
public String getNodeName()
public String getNodeValue() throws DOMException
DOMException
public void setNodeValue(String nodeValue) throws DOMException
DOMException
public Node getParentNode()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public Node getPreviousSibling()
public Node getNextSibling()
public NamedNodeMap getAttributes()
public Document getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMException
public Node removeChild(Node oldChild) throws DOMException
DOMException
public Node appendChild(Node newChild) throws DOMException
DOMException
public boolean hasChildNodes()
public Node cloneNode(boolean deep)
public boolean hasAttributes()
public DocumentType getDoctype()
public DOMImplementation getImplementation()
public Element getDocumentElement()
public Element createElement(String name) throws DOMException
DOMException
public DocumentFragment createDocumentFragment()
public CDATASection createCDATASection(String data) throws DOMException
DOMException
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
DOMException
public Attr createAttribute(String name) throws DOMException
DOMException
public EntityReference createEntityReference(String name) throws DOMException
DOMException
public Node importNode(Node importedNode, boolean deep) throws DOMException
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
DOMException
protected DocumentFactory getDocumentFactory()
getDocumentFactory
in class DefaultDocument
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.