I know theres got to be a quick and easy way to do this.. I want to be able to read values from an XML file and then display them with PHP.
Sample XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<news>
<article>
<headline> news headline </headline>
<story> story text </story>
<url> story url </url>
<author> bill </author>
</article>
</news>
I just want to be able to read those into
variables:
$headline
$story
$url
$author
and be able to print them out into HTML.
Everything I've seen is overly complicated,
from the example in the "Programming PHP" book, to using xslt, etc.. There's gotta be a "quick and dirty" method.
Pointers to tutorials appreciated.
Bill