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 
[   ]list-xml-elements.php2018-05-15 19:30 1.9K 
[   ]map-x-html.php2018-05-15 19:30 1.8K 
[   ]map-x-html2.php2018-05-15 19:30 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