developerWorks: SimpleXML Processing with PHP

[ Thanks to An Anonymous Reader for
this link. ]

“PHP version 5 introduced SimpleXML, a new application
programming interface (API) for reading and writing XML. In
SimpleXML, expressions such as:


“select elements from a document. As long as you have a good
idea of your document’s structure, such expressions are easy to
write. However, if you don’t know exactly where the elements of
interest appear (as might be the case in Docbook, HTML, and similar
narrative documents), SimpleXML can use XPath expressions to find
the elements…”

Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis