PHP offers two methods of parsing an XML document. You've already seen how SAX works; in this article, find out how to use PHP's DOM functions to traverse an XML tree, and also learn about important differences between the two approaches.
That just about concludes this little tour of parsing XML data with PHP. I've tried to keep it as simple as possible, and there are numerous aspects of XML I haven't covered here. If you're interested in learning more about XML and XSL, you should visit the following links:
You can read more about the DOM, and its different incarnations, at:
The PHP manual pages, with user comments, are a great online resource, and you'll often find answers to common problems there. Even if you don't, they're well worth bookmarking:
A number of developers have built and released free PHP classes to handle XML data - if you're ever on a tight deadline, using these classes might save you some development time.
And that's just about all for the moment. I hope you found this interesting, and that it helped to make the road ahead a little clearer. If you'd like to know more about PHP and XML, write in and tell me what you'd like to read about...and, until next time, stay healthy!