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.
Tries to determine the proper encoding of the file, by the first processing instruction. Uses default encoding if none were found.
Load XML from the given file
Load XML from the given string. The encoding
parameter must be correct.
Loads the XML from given file.
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.
Read the given file. If a mock was provided, use the mock instead of fs
.
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. This class handles encoding while reading from files.