This class is designed for working with tree-structure data, along with xnode, It supports reading files in XML format, writing XML (http://www.w3.org/XML) and HTML, and XSLT transformation (http://www.w3.org/TR/xslt).
Working with tree is performed in DOM model (http://www.w3.org). DOM1 and some opportunities of DOM2 are available.
Class xdoc implements DOM-interface Document and is heir to class xnode.
Errors in DOM operations DOMException) interface) are converted into exceptions of xml-type.