HomeArchives → by date → 2004 → May → 12 →

XML with PHP4, PHP5

<< Previous Entry | Next Entry>>

KEITH DEVEN'S XML LIBRARY FOR PHP4
"The library gives you two functions, XML_unserialize() and XML_serialize(). XML_unserialize() takes an XML document and returns a PHP data structure, and XML_serialize() takes a PHP data structure and returns an XML document. Real easy. I've also provided an XML to PHP translator that lets you test it out." It will get even better with PHP5:


PROCESSING LARGE XML DOCUMENTS WITH PHP 5
The Bitflux Blog on Processing Large XML Documents with PHP 5 describes how the title of a weblog entry with a specific ID has been extracted from a 10 MB XML file. "To sum up: XMLReader is a powerfull extension to parse large XML documents, it's usually much faster than SAX (twice as fast), while still scaling without problems on the memory side. With the expand() method, it's now also possible to mix the features of DOM/SimpleXML/XSLT with XMLReader, if you only have to process parts of an XML document."


MORE PHP5 XML GOODIES
Christian Stocker: Workshop: XML in PHP5
Simon Willison: XML highlights for PHP 5
Adam Trachtenberg: Using PHP 5's SimpleXML
And related, for even niftier access to document elements: Tidying up [and parse, and clean, and extract] your HTML with PHP

Tools

Permanent link to this entry | Email this entry | Bookmark with to del.icio.us | Digg it

Comments

Write a comment




Shall I remember this data?


If you do not want to have your full name published, you can also contact me privately on this entry via email.

Recent Comments

Haiko Hebig on Les Visages de l'Acier at 2008-12-30 14:15
Bruno Maillard sculpteur on Les Visages de l'Acier at 2008-12-30 14:03
Kolton H. on inside the apple iPod design triumph at 2008-12-30 08:40
Gage X. on iPod and Windows, Linux at 2008-12-30 07:07
Haiko Hebig on Kino International at 2008-12-16 01:55
kay on Kino International at 2008-12-15 23:41
Haiko Hebig on Kino International at 2008-12-15 20:14
Philipp on Kino International at 2008-12-15 19:27
sam jovanou on Keyboard Upgrade at 2008-12-10 19:28
Mikkael on Keyboard Upgrade at 2008-12-10 16:54
The Cartoonist on Kontinuierlich at 2008-12-10 13:23
Sjoerd Reverda on Evening at 2008-11-29 12:01
Haiko Hebig on Rauxel Generating Set at 2008-11-14 15:10
The Cartoonist on Rauxel Generating Set at 2008-11-14 00:22
Haiko Hebig on Common Questions (I) at 2008-10-27 00:37