Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Introducing SimpleXML in PHP 5
Jun 12, 2006 @ 07:19:13

DevShed starts up a new series today for those looking to work with XML in PHP5 and just need something light and, well, simple. To help, they've posted part one of their "Introduction to SimpleXML" series.

In response to all the exciting features that I mentioned before, in this three-part series I'll be taking a close look at the most important functions of the "simpleXML" extension, using numerous code samples and clear explanations to put them in context, so you can understand how they work.

At the end of the series, you should be equipped with the proper background to start using "simpleXML" in your own PHP 5 applications.

They start with a method for getting the data into a SimpleXML object in the first place, reading in an XML file. With the object (and data inside) in place, they show how to query that data (as array elements), pulling out the bits you need. Combine these two bits of functionality into a simple class and you'll have the last step of part one of the series - building a basic XML parsing class.

tagged: simplexml xml introduction part1 tutorial simplexml xml introduction part1 tutorial