Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Have you ever heard of XSLT?

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •