Class Document
java.lang.Object
com.japisoft.editix.editor.jsx.domapi.Node
com.japisoft.editix.editor.jsx.domapi.Document
public class Document extends Node
The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document
The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree.
With them, you can change the document's structure, style, or content. Nodes can also have event handlers attached to them. Once an event is triggered, the event handlers get executed.
-
Field Summary
Fields Modifier and Type Field Description ElementdocumentElementjava.lang.StringdocumentURIFields inherited from class com.japisoft.editix.editor.jsx.domapi.Node
baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nodeName, nodeType, nodeValue, parentNode, tagName, textContent -
Constructor Summary
Constructors Constructor Description Document(java.lang.String documentURI, org.w3c.dom.Document node) -
Method Summary
Modifier and Type Method Description AttrcreateAttribute(java.lang.String name)AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)ElementcreateElement(java.lang.String tagName)ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)NodecreateNode(org.w3c.dom.Node node)TextcreateTextNode(java.lang.String data)java.lang.Objectevaluate(java.lang.String xpathExpression, Node contextNode, java.lang.Object resolver, short type, java.lang.Object result)NodeimportNode(Node node, boolean deepMode)Documentread(java.lang.String path)booleansave()booleansave(java.lang.String path)Methods inherited from class com.japisoft.editix.editor.jsx.domapi.Node
appendChild, cloneNode, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild
-
Field Details
-
documentURI
public java.lang.String documentURI -
documentElement
-
-
Constructor Details
-
Document
public Document(java.lang.String documentURI, org.w3c.dom.Document node)
-
-
Method Details
-
read
-
save
public boolean save() -
save
public boolean save(java.lang.String path) -
createAttribute
-
createAttributeNS
-
createElement
-
createElementNS
-
createTextNode
-
createNode
-
evaluate
public java.lang.Object evaluate(java.lang.String xpathExpression, Node contextNode, java.lang.Object resolver, short type, java.lang.Object result) -
importNode
-