I was reading the DOM XML/PHP tutorial and ran across a stumbling block. Perhaps someone can help...
Assume My XML were the following:
<result>
<elememnt>
<library>
<book>
<title>Hannibal</title>
<author>Thomas Harris</author>
<genre>Suspense</genre>
<pages>564</pages>
<price>8.99</price>
<rating>4</rating>
</book>
<book>
<title>Run</title>
<author>Douglas E. Winter</author>
<genre>Thriller</genre>
<pages>390</pages>
<price>7.49</price>
<rating>5</rating>
</book>
<book>
<title>The Lord Of The Rings</title>
<author>J. R. R. Tolkien</author>
<genre>Fantasy</genre>
<pages>3489</pages>
<price>10.99</price>
<rating>5</rating>
</book>
</library>
</element>
</result>
How would I get the children from <library>? I see from the example, how a single teir XML document, with <library> being the root how it is done, but I cannot figure out how to jump multiple teirs.. Thanks in advance...