# Class: com.pnfsoftware.jeb.util.encoding.xml.XDocument

Implementation of the [Document](Document) API used by [XmlParser](XmlParser). This implementation allows multiple root element nodes.

## Constructor: XDocument
- parameter: `declAttributes`, type: `java.util.List<com.pnfsoftware.jeb.util.encoding.xml.XAttr>`
- parameter: `doctype`, type: `com.pnfsoftware.jeb.util.encoding.xml.XDocumentType`

Description: Create an XML document node.
parameter: declAttributes: attributes from the XML declaration
parameter: doctype: optional document type declaration

## Method: adoptNode
- parameter: `source`, type: `org.w3c.dom.Node`
- return type: `org.w3c.dom.Node`


## Method: createAttribute
- parameter: `name`, type: `java.lang.String`
- return type: `org.w3c.dom.Attr`


## Method: createAttributeNS
- parameter: `namespaceURI`, type: `java.lang.String`
- parameter: `qualifiedName`, type: `java.lang.String`
- return type: `org.w3c.dom.Attr`


## Method: createCDATASection
- parameter: `data`, type: `java.lang.String`
- return type: `org.w3c.dom.CDATASection`


## Method: createComment
- parameter: `data`, type: `java.lang.String`
- return type: `org.w3c.dom.Comment`


## Method: createDocumentFragment
- return type: `org.w3c.dom.DocumentFragment`


## Method: createElement
- parameter: `tagName`, type: `java.lang.String`
- return type: `org.w3c.dom.Element`


## Method: createElementNS
- parameter: `namespaceURI`, type: `java.lang.String`
- parameter: `qualifiedName`, type: `java.lang.String`
- return type: `org.w3c.dom.Element`


## Method: createEntityReference
- parameter: `name`, type: `java.lang.String`
- return type: `org.w3c.dom.EntityReference`


## Method: createProcessingInstruction
- parameter: `target`, type: `java.lang.String`
- parameter: `data`, type: `java.lang.String`
- return type: `org.w3c.dom.ProcessingInstruction`


## Method: createTextNode
- parameter: `data`, type: `java.lang.String`
- return type: `org.w3c.dom.Text`


## Method: getDoctype
- return type: `org.w3c.dom.DocumentType`


## Method: getDocumentElement
- return type: `org.w3c.dom.Element`


## Method: getDocumentURI
- return type: `java.lang.String`


## Method: getDomConfig
- return type: `org.w3c.dom.DOMConfiguration`


## Method: getElementById
- parameter: `elementId`, type: `java.lang.String`
- return type: `org.w3c.dom.Element`


## Method: getElementsByTagName
- parameter: `name`, type: `java.lang.String`
- return type: `org.w3c.dom.NodeList`


## Method: getElementsByTagNameNS
- parameter: `namespaceURI`, type: `java.lang.String`
- parameter: `localName`, type: `java.lang.String`
- return type: `org.w3c.dom.NodeList`


## Method: getImplementation
- return type: `org.w3c.dom.DOMImplementation`


## Method: getInputEncoding
- return type: `java.lang.String`


## Method: getNodeName
- return type: `java.lang.String`


## Method: getNodeType
- return type: `short`


## Method: getNodeValue
- return type: `java.lang.String`


## Method: getStrictErrorChecking
- return type: `boolean`


## Method: getXmlEncoding
- return type: `java.lang.String`


## Method: getXmlStandalone
- return type: `boolean`


## Method: getXmlVersion
- return type: `java.lang.String`


## Method: importNode
- parameter: `importedNode`, type: `org.w3c.dom.Node`
- parameter: `deep`, type: `boolean`
- return type: `org.w3c.dom.Node`


## Method: normalizeDocument


## Method: renameNode
- parameter: `n`, type: `org.w3c.dom.Node`
- parameter: `namespaceURI`, type: `java.lang.String`
- parameter: `qualifiedName`, type: `java.lang.String`
- return type: `org.w3c.dom.Node`


## Method: setDocumentURI
- parameter: `documentURI`, type: `java.lang.String`


## Method: setStrictErrorChecking
- parameter: `strictErrorChecking`, type: `boolean`


## Method: setXmlStandalone
- parameter: `xmlStandalone`, type: `boolean`


## Method: setXmlVersion
- parameter: `xmlVersion`, type: `java.lang.String`


