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 Details

  • Constructor Details

    • Document

      public Document​(java.lang.String documentURI, org.w3c.dom.Document node)
  • Method Details

    • read

      public Document read​(java.lang.String path)
    • save

      public boolean save()
    • save

      public boolean save​(java.lang.String path)
    • createAttribute

      public Attr createAttribute​(java.lang.String name)
    • createAttributeNS

      public Attr createAttributeNS​(java.lang.String namespaceURI, java.lang.String qualifiedName)
    • createElement

      public Element createElement​(java.lang.String tagName)
    • createElementNS

      public Element createElementNS​(java.lang.String namespaceURI, java.lang.String qualifiedName)
    • createTextNode

      public Text createTextNode​(java.lang.String data)
    • createNode

      public Node createNode​(org.w3c.dom.Node node)
    • evaluate

      public java.lang.Object evaluate​(java.lang.String xpathExpression, Node contextNode, java.lang.Object resolver, short type, java.lang.Object result)
    • importNode

      public Node importNode​(Node node, boolean deepMode)