Determining line number for diagnostics during DOM traversal

Discussion in 'XML' started by Jim Cobban, Nov 15, 2003.

  1. Jim Cobban

    Jim Cobban Guest

    I am reading an XML file using Java. I would like to issue diagnostic
    messages which identify the original line number in the source, but that
    information does not appear to be available during a DOM traversal. I am
    using DOM rather than SAX because I want to be able to update the DOM and
    then write the updated XML file back out.

    --
    Jim Cobban
    34 Palomino Dr.
    Kanata, ON, CANADA
    K2M 1M1
    +1-613-592-9438
    Jim Cobban, Nov 15, 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. Xamalaek
    Replies:
    0
    Views:
    1,276
    Xamalaek
    Jun 29, 2004
  2. David Abrahams

    Determining caller's file and line number

    David Abrahams, Jun 23, 2004, in forum: Python
    Replies:
    2
    Views:
    584
    David Abrahams
    Jun 24, 2004
  3. Stepped DOM traversal

    , Mar 29, 2005, in forum: Javascript
    Replies:
    1
    Views:
    102
    Lasse Reichstein Nielsen
    Mar 29, 2005
  4. Patient Guy

    DOM Traversal: NodeIterator or TreeWalker?

    Patient Guy, Jul 11, 2006, in forum: Javascript
    Replies:
    3
    Views:
    126
    Patient Guy
    Jul 11, 2006
  5. Mahernoz

    DOM Traversal of a container Element.

    Mahernoz, Dec 15, 2007, in forum: Javascript
    Replies:
    2
    Views:
    106
    Doug Gunnoe
    Dec 16, 2007
Loading...

Share This Page