The document node
Encoding of the loaded XML document
List of errors occurred.
Whether there were error occurred while loading the XML document.
The root element node
Adds the given namespace declaration to the specified node, or root node if no node is given.
Load XML from the given string. The encoding
parameter must be correct.
Passes through to given node's lookupNamespaceURI()
, and back track to
ancestors if not found in the node.
Passes through to given node's lookupPrefix()
, and back track to
ancestors if not found in the node.
Converts the XML document to string according to given options. Defaults to pretty print and keeps comment.
Generated using TypeDoc
A wrapper over xmldom-ts. There are some convenient methods.
There are many gaps between the standard DOM feature set provided by browsers. I've tried to modify the original
xmldom-ts
package but failed. The original project doesn't provide apackage-lock.json
.tsc
spills a whole lot of errors on it.