Index of /guides/php/examples/simple-xml

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]README.html2005-03-01 15:11 919  
[   ]choco-chip.xml2005-03-01 16:37 1.8K 
[TXT]choco-chip.xml.text2005-03-01 16:37 1.8K 
[   ]list-xml-elements.php2005-03-01 17:16 1.9K 
[   ]map-x-html.php2005-03-01 16:31 1.8K 
[   ]map-x-html2.php1999-03-22 23:57 2.4K 
[   ]story.xml2005-03-01 16:37 2.8K 

Starting with version 3.0.7 PHP has XML stream-parsing support (via James Clark's expat library). Documentation in the PHP 5 Manual is in CXXIX. XML Parser Functions.

Still works with PhP 4.3.4 [DKS March 2004]. Still works with PHP 5.0.x [DKS Feb 2005].

  list-xml-elements.php: lists all the XML elements

  map-x-html.php: Maps each XML tag to ONE html tag

  map-x-html2.php: Maps each XML tag to arbitrary html/text (best looking version)

The XML example is stolen from Jay Greespan's http://www.hotwired.com/webmonkey/98/41/index1a_page6.html?tw=html


D.K.S.