How To Parsing a Simple XML Document in PHP

Here is an example of an XML document and the steps needed to parse that document: test.xml -- The XML file we parse. <?xml version="1.0"?> <book> <chapter id="1"> <title>Chapter 1</title> <contents> The Contents of chapter one go here. </contents> </chapter> <chapter id="2"> <title>Chapter 2</title> <contents> The Contents of chapter two go here. </contents> </chapter> </book></code> … Continue reading How To Parsing a Simple XML Document in PHP