Parsing XML using PHP4
By Burhan Khalid2005-08-16
Parsing XML using PHP4
This tutorial will explain how to parse (that is, read and interpret) information from a XML file using PHP. I will discuss the very basics of XML (mainly structure), and then jump right in to the reading and parsing of XML files. This is not a tutorial on XML itself, just parsing XML with PHP.
First, the pre-requisites. Stuff you will need to ensure you have running.
- Web server with PHP installed. No special extensions are needed for this tutorial.
- Ability to save files on the webserver (either upload, or save directly via FTP)
- A decent text editor. Preferrably one that has syntax highlighting support for PHP
Tutorial Pages:
» Parsing XML using PHP4
» XML File Structure
» Creating our XML File
» Parsing with PHP
» Creating our Parser
» Setting up tag handlers
» Setting up content (data) handlers
» Starting up the parser
» Creating the gallery
© 2004-2005 Burhan Khalid
