Hey all... trying to get an xml document like the following parsed, so that the inner element will be ready by javascript:
<?xml version="1.0" encodig="iso-8859-1"?>
<page title="home">
</page>
<page title="about">
</page>
Basically, one XML file will hold all the information for the site. And the site (being AJAX-ish) will use Javascript to read from the xml file. I'm getting it via an XML request response. So here's the real question:
What is the best way to get the proper node (page) based upon the user selection?
Would it be better to wrap the initial stuff in a separate tag, then find the proper child node? Something like:
<pages>
<page title="home">
</page>
<page title="about">
</page>
</pages>
Thanks for any help you can offer.