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