[Home] [By Thread] [By Date] [Recent Entries]


Please excuse my ignorance of XML.

I've been using "XML" in various forms for a while now, but have been using DOM most of the time to do the work.

I've just picked up SAX and it's brilliant for the right purpose, however...

I want to be able to grab all of the character data for a specific tag (this is dummy XML and not very good dummy XML at that):

<xml>
  <mytag>
    <info>
      <doc>
        <author>Me</author>
        <date>today</date>
      </doc>
    </info>
    <importantbit>
       .... doesn't matter what's in here ....
    </importantbit>
  </mytag>
</xml>

My question is (using JAXP) how can I retrieve all the text in the <info></info> tags?  There isn't a simple way of doing it straight from the API.

Just wondering...

Paul


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member