This is simple PHP script to show how to parse the the contents of an XML file and display them. The script uses PHP XML parser to traverse through the xml file and print it’s contents. This extension requires the libxml PHP extension to be enabled.

By default, the script assumes that example.xml file is in the same directory as the script is.