Extracting All Paths & Values from a DOM?

Discussion in 'XML' started by Daniel Yacob, Dec 9, 2003.

  1. Daniel Yacob

    Daniel Yacob Guest

    Greetings,

    I'm looking for a Java API that would read an XML doc, as a DOM would
    be fine, and spit out a list of xpaths and corresponding values for
    all leaf nodes. Is there such a thing?

    If not, I can imagine accomplishing this with a tree walk over a DOM
    object and stuffing the path/value info into a hash along the way. Is
    there a better way to go about it?

    thanks,

    /Daniel
     
    Daniel Yacob, Dec 9, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    679
  2. Noah
    Replies:
    5
    Views:
    791
  3. Damo
    Replies:
    4
    Views:
    746
    Joseph Kesselman
    Jan 31, 2007
  4. Replies:
    11
    Views:
    2,446
    Joseph J. Kesselman
    Jun 24, 2008
  5. Ohad Lutzky

    Paths, gentleman, paths

    Ohad Lutzky, Nov 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    202
    David Vallner
    Nov 7, 2006
Loading...

Share This Page