I’ve got a question in regards to the tutorial “XML Parsing using PHP {Intermediate}” located at http://www.kirupa.com/web/xml_php_parse_intermediate.htm
I was going to use it for a project I’m doing but the XML isn’t parsing correctly.
Is there a reason why change the XML from this:
<?xml version=“1.0”?>
<news>
<story>
<headline>Godzilla Attacks LA!</headline>
<description>Equipped with a… </description>
</story>
</news>
to something like this:
<?xml version=“1.0”?>
<news>
<department>
<story>
<headline>Godzilla Attacks LA!</headline>
<description>Equipped with a… </description>
</story>
</department>
</news>
would cause the script to no longer work? The script won’t display anything if my xml looks like the second example.
Thanks for any help.