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. Advertisements

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:
    902
  2. Jim in Arizona
    Replies:
    4
    Views:
    8,434
    Jim in Arizona
    Aug 24, 2005
  3. Al Hatch
    Replies:
    3
    Views:
    1,174
    Johannes Koch
    Jun 5, 2006
  4. Noah
    Replies:
    5
    Views:
    1,115
  5. Damo
    Replies:
    4
    Views:
    838
    Joseph Kesselman
    Jan 31, 2007
  6. Replies:
    11
    Views:
    2,914
    Joseph J. Kesselman
    Jun 24, 2008
  7. nick
    Replies:
    1
    Views:
    618
    Le Chaud Lapin
    Sep 12, 2008
  8. Ohad Lutzky

    Paths, gentleman, paths

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