sdphp_talk2.xml
<talk id='jmc_3'>
 <title>Processing XML with PHP - An Introduction</title>
 <date>2002-08-26</date>
 <speaker initials='jmc' mode='php'>
   Jesus M. Castagnetto
 </speaker>
 <url type='web'>http://www.sdphp.net/talks/intro_xml</url>
</talk>
The document we saw before with some attributes added to it.

Now we are going to see a more general parser, modelled after a DOM-style structure, i.e. each element is an XMLNode object, which contains XMLAttribute objects and a content.