David Sklar has this pointer on his blog today to a new post on the Big Nerd Ranch blog today dealing with XML and PHP5.
In this article, we’ll be looking at one way to build and parse an XML tree using the new methods in PHP 5.
Now that PHP 5 is becoming more and more prevalent over its predecessors, some really good books that cover PHP need revisions. Nowhere is this more true than with XML-related topics, where PHP 5 has a completely different way of working with XML — and, in fact, the mechanisms from PHP 4 will no longer work.
They look at a generic XML document they'll use to test and move quickly into a way to create it using the DOM functionality in PHP. From there, they use a simple ten-line script to parse it and echo it back out...