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 Element
documentElement
java.lang.String
documentURI
Fields 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 Attr
createAttribute(java.lang.String name)
Attr
createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
Element
createElement(java.lang.String tagName)
Element
createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
Node
createNode(org.w3c.dom.Node node)
Text
createTextNode(java.lang.String data)
java.lang.Object
evaluate(java.lang.String xpathExpression, Node contextNode, java.lang.Object resolver, short type, java.lang.Object result)
Node
importNode(Node node, boolean deepMode)
Document
read(java.lang.String path)
boolean
save()
boolean
save(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
-