| Modifier and Type | Field and Description |
|---|---|
protected XMLDocumentType |
docType |
protected XMLElement |
root |
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| Constructor and Description |
|---|
XMLDocument()
Constructor.
|
cloned, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, insertBefore, isAncestor, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setParent, setPrefix, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setUserDataprotected XMLDocumentType docType
protected XMLElement root
public void setDocumentType(XMLDocumentType docType)
public void setDocumentElement(XMLElement root)
public Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeappendChild in class XMLNodeDOMExceptionpublic XMLNode getFirstChild()
getFirstChild in interface NodegetFirstChild in class XMLNodepublic XMLNode getLastChild()
getLastChild in interface NodegetLastChild in class XMLNodepublic boolean hasChildNodes()
hasChildNodes in interface NodehasChildNodes in class XMLNodepublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class XMLNodepublic static XMLDocument create(XMLStreamEventsSync stream) throws XMLException, IOException
XMLExceptionIOExceptionpublic static AsyncWork<XMLDocument,Exception> create(XMLStreamEventsAsync stream)
public String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic XMLDocument cloneNode(boolean deep)
public DocumentType getDoctype()
getDoctype in interface Documentpublic XMLDomImplementation getImplementation()
getImplementation in interface Documentpublic XMLElement getDocumentElement()
getDocumentElement in interface Documentpublic XMLElement createElement(String tagName)
createElement in interface Documentpublic XMLElement createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS in interface DocumentDOMExceptionpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic XMLText createTextNode(String data)
createTextNode in interface Documentpublic XMLComment createComment(String data)
createComment in interface Documentpublic XMLCData createCDATASection(String data)
createCDATASection in interface Documentpublic ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction in interface DocumentDOMExceptionpublic String getTextContent()
getTextContent in interface Nodepublic void setTextContent(String textContent)
setTextContent in interface Nodepublic void normalize()
public XMLAttribute createAttribute(String name)
createAttribute in interface Documentpublic Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS in interface DocumentDOMExceptionpublic EntityReference createEntityReference(String name) throws DOMException
createEntityReference in interface DocumentDOMExceptionpublic NodeList getElementsByTagName(String tagname)
getElementsByTagName in interface Documentpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface Documentpublic XMLElement getElementById(String elementId)
getElementById in interface Documentprotected XMLElement getElementById(String id, XMLElement e)
public String getInputEncoding()
getInputEncoding in interface Documentpublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface Documentpublic void setXmlStandalone(boolean xmlStandalone)
throws DOMException
setXmlStandalone in interface DocumentDOMExceptionpublic String getXmlVersion()
getXmlVersion in interface Documentpublic void setXmlVersion(String xmlVersion) throws DOMException
setXmlVersion in interface DocumentDOMExceptionpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface Documentpublic void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface Documentpublic String getDocumentURI()
getDocumentURI in interface Documentpublic void setDocumentURI(String documentURI)
setDocumentURI in interface Documentpublic Node importNode(Node importedNode, boolean deep) throws DOMException
importNode in interface DocumentDOMExceptionpublic Node adoptNode(Node source) throws DOMException
adoptNode in interface DocumentDOMExceptionpublic DOMConfiguration getDomConfig()
getDomConfig in interface Documentpublic void normalizeDocument()
normalizeDocument in interface Documentpublic Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
renameNode in interface DocumentDOMExceptionCopyright © 2018. All rights reserved.