Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


developerWorks: SimpleXML Processing with PHP

Oct 12, 2006, 02:15 (0 Talkback[s])
(Other stories by Elliotte Rusty Harold)

[ 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:

$doc->rss->channel->item->title

"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

Related Stories: