Helpful Information
 
 
Category: XML
Parsing only part of a page?

Hello, I am kinda new to this whole xml thing I am trying to piece this stuff together but I am having a bit of trouble with one part. I have an xml document that contains an article in the general format:
<article title=" ">
<page title=" ">
<section title=" ">
</section>
<section title=" ">

</section>
</page>
<page>
...
</page>
...
</article>
The way that I want to parse it is to have th user downlaod the entire xml file at the begining and then have it parsed out into a nice html shell on the client side. To my best understanding this is kind of the thing that xml was made for. But what my question is how do I parse only a certain page (say I only want to display the information on the second page or the third, they arn't numbered). Also I need to be able to make a table of contents that will allow the user to click on a link to another page in the article and that page of the article will be displayed where the current page is being displayed. I realize that this is a lot. but I think that once I figure out how to do this stuff, the other stuff should kind of come together.
Thanks a lot for all the help. I appreciate it.
~evlich

Have you ever heard of XSLT? :)

You can use some of the features to selectively transform parts of an XML document.










privacy (GDPR)