!--a11y-->
Building DOM Trees from a
Document 
You can build DOM Tree from a Documentinstance.
To build a DOM Tree, you have to take an empty Document instance. In JAXP this task is performed by getting an instance of DocumentBuilderFactory. Then, from this instance you get a new instance of a DocumentBuilder. Finally, from the instance of the DocumentBuilder you invoke newDocument().
The following classes are closely related to this process:
· javax.xml.DocumentBuilder
· org.w3c.dom.Document
· org.w3c.dom.Node
