public class DOMDocument extends DOMNode<org.w3c.dom.Document>
Modifier and Type | Method and Description |
---|---|
static DOMDocument |
__construct(Env env,
java.lang.String version,
java.lang.String encoding) |
DOMNode |
adoptNode(DOMNode source) |
DOMAttr |
createAttribute(java.lang.String name) |
DOMAttr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName) |
DOMCDATASection |
createCDATASection(java.lang.String data) |
DOMComment |
createComment(java.lang.String data) |
DOMDocumentFragment |
createDocumentFragment() |
DOMElement |
createElement(java.lang.String tagName) |
DOMElement |
createElement(java.lang.String tagName,
java.lang.String textContent) |
DOMElement |
createElementNS(java.lang.String namespaceURI,
java.lang.String tagName) |
DOMElement |
createElementNS(java.lang.String namespaceURI,
java.lang.String tagName,
java.lang.String textContent) |
DOMEntityReference |
createEntityReference(java.lang.String name) |
DOMProcessingInstruction |
createProcessingInstruction(java.lang.String target) |
DOMProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data) |
DOMText |
createTextNode(java.lang.String data) |
DOMConfiguration |
getConfig() |
DOMDocumentType |
getDoctype() |
DOMElement |
getDocumentElement() |
java.lang.String |
getDocumentURI() |
DOMConfiguration |
getDomConfig() |
DOMElement |
getElementById(java.lang.String elementId) |
DOMNodeList |
getElementsByTagName(java.lang.String name) |
DOMNodeList |
getElementsByTagNameNS(java.lang.String uri,
java.lang.String name) |
java.lang.String |
getEncoding() |
boolean |
getFormatOutput() |
DOMImplementation |
getImplementation() |
java.lang.String |
getInputEncoding() |
boolean |
getPreserveWhiteSpace() |
boolean |
getRecover() |
boolean |
getResolveExternals() |
boolean |
getStrictErrorChecking() |
boolean |
getSubstituteEntities() |
boolean |
getValidateOnParse() |
java.lang.String |
getVersion() |
java.lang.String |
getXmlEncoding() |
boolean |
getXmlStandalone() |
java.lang.String |
getXmlVersion() |
DOMNode |
importNode(DOMNode node) |
DOMNode |
importNode(DOMNode importedNode,
boolean deep) |
boolean |
load(Env env,
Path path,
Value options) |
boolean |
loadHTML(Env env,
java.lang.String source) |
boolean |
loadHTMLFile(Env env,
Path path) |
boolean |
loadXML(Env env,
StringValue source,
Value options) |
void |
normalizeDocument() |
boolean |
relaxNGValidate(java.lang.String rngFilename) |
boolean |
relaxNGValidateSource(java.lang.String rngSource) |
DOMNode |
renameNode(DOMNode node,
java.lang.String namespaceURI,
java.lang.String qualifiedName) |
Value |
save(Env env,
Path path,
Value options) |
StringValue |
saveHTML(Env env) |
Value |
saveHTMLFile(Env env,
Path path) |
StringValue |
saveXML(Env env,
DOMNode node,
Value options) |
boolean |
schemaValidate(Env env,
java.lang.String schemaFilename) |
boolean |
schemaValidateSource(Env env,
java.lang.String schemaSource) |
void |
setDocumentURI(java.lang.String documentURI) |
void |
setEncoding(java.lang.String encoding) |
void |
setFormatOutput(boolean formatOutput) |
void |
setPreserveWhiteSpace(boolean preserveWhiteSpace) |
void |
setRecover(boolean recover) |
void |
setResolveExternals(boolean resolveExternals) |
void |
setStrictErrorChecking(boolean strictErrorChecking) |
void |
setSubstituteEntities(boolean substituteEntities) |
void |
setValidateOnParse(boolean validateOnParse) |
void |
setVersion(java.lang.String version) |
void |
setXmlStandalone(boolean xmlStandalone) |
void |
setXmlVersion(java.lang.String xmlVersion) |
boolean |
validate() |
int |
xinclude(Env env,
Value options) |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString
getImpl, getImpl, wrap, wrap
public static DOMDocument __construct(Env env, java.lang.String version, java.lang.String encoding)
public void setVersion(java.lang.String version)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public DOMNode adoptNode(DOMNode source) throws DOMException
DOMException
public DOMAttr createAttribute(java.lang.String name) throws DOMException
DOMException
public DOMAttr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
DOMException
public DOMCDATASection createCDATASection(java.lang.String data)
public DOMComment createComment(java.lang.String data)
public DOMDocumentFragment createDocumentFragment()
public DOMElement createElement(java.lang.String tagName) throws DOMException
DOMException
public DOMElement createElement(java.lang.String tagName, java.lang.String textContent) throws DOMException
DOMException
public DOMElement createElementNS(java.lang.String namespaceURI, java.lang.String tagName) throws DOMException
DOMException
public DOMElement createElementNS(java.lang.String namespaceURI, java.lang.String tagName, java.lang.String textContent) throws DOMException
DOMException
public DOMEntityReference createEntityReference(java.lang.String name) throws DOMException
DOMException
public DOMProcessingInstruction createProcessingInstruction(java.lang.String target) throws DOMException
DOMException
public DOMProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
DOMException
public DOMText createTextNode(java.lang.String data)
public DOMConfiguration getConfig()
public DOMDocumentType getDoctype()
public DOMElement getDocumentElement()
public java.lang.String getDocumentURI()
public DOMConfiguration getDomConfig()
public DOMElement getElementById(java.lang.String elementId)
public DOMNodeList getElementsByTagName(java.lang.String name)
public DOMNodeList getElementsByTagNameNS(java.lang.String uri, java.lang.String name)
public boolean getFormatOutput()
public DOMImplementation getImplementation()
public java.lang.String getInputEncoding()
public boolean getPreserveWhiteSpace()
public boolean getRecover()
public boolean getResolveExternals()
public boolean getStrictErrorChecking()
public boolean getSubstituteEntities()
public boolean getValidateOnParse()
public java.lang.String getVersion()
public java.lang.String getXmlEncoding()
public boolean getXmlStandalone()
public java.lang.String getXmlVersion()
public DOMNode importNode(DOMNode importedNode, boolean deep) throws DOMException
DOMException
public boolean loadHTML(Env env, java.lang.String source)
source
- A string containing the HTMLpublic boolean loadXML(Env env, StringValue source, Value options)
public void normalizeDocument()
public boolean relaxNGValidate(java.lang.String rngFilename)
public boolean relaxNGValidateSource(java.lang.String rngSource)
public DOMNode renameNode(DOMNode node, java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
DOMException
public Value save(Env env, Path path, Value options)
public StringValue saveHTML(Env env)
public Value saveHTMLFile(Env env, Path path)
public StringValue saveXML(Env env, DOMNode node, Value options) throws DOMException
DOMException
public boolean schemaValidate(Env env, java.lang.String schemaFilename)
public boolean schemaValidateSource(Env env, java.lang.String schemaSource)
public void setDocumentURI(java.lang.String documentURI)
public void setFormatOutput(boolean formatOutput)
public void setPreserveWhiteSpace(boolean preserveWhiteSpace)
public void setRecover(boolean recover)
public void setResolveExternals(boolean resolveExternals)
public void setStrictErrorChecking(boolean strictErrorChecking)
public void setSubstituteEntities(boolean substituteEntities)
public void setValidateOnParse(boolean validateOnParse)
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
DOMException
public void setXmlVersion(java.lang.String xmlVersion) throws DOMException
DOMException
public boolean validate()