The DOMXML parser in libxml, that the DOM XML functions in PHP use, generates a tree of node elements from the input document all at once. Each node is an object with properties (like the ones shown below), and methods to retrieve or modify those properties.

<title level='1'> SDPHP </title>

Root node