Help needed with XML Node insert API

Discussion in 'XML' started by Kumar, Nov 1, 2003.

  1. Kumar

    Kumar Guest

    Hi All

    I have to add elements to an existing XML Document which conforms to a
    DTD.

    Is there an some API which throws an exception when I append a node to
    this document if it is not a valid location or element based on the
    DTD.

    My DTD is very specific on sequence of elements.

    Since I have to insert many elements it is not an option for me to
    insert all elements and at the end run validate on the document.

    Thanks
    kumar
     
    Kumar, Nov 1, 2003
    #1
    1. Advertising

  2. Kumar wrote:
    > I have to add elements to an existing XML Document which conforms to a
    > DTD.
    >
    > Is there an some API which throws an exception when I append a node to
    > this document if it is not a valid location or element based on the
    > DTD.
    >
    > My DTD is very specific on sequence of elements.
    >
    > Since I have to insert many elements it is not an option for me to
    > insert all elements and at the end run validate on the document.


    I think the W3C DOM Level 3 which is currently being worked on attempts
    to provide such an API
    http://www.w3.org/TR/2003/CR-DOM-Level-3-Val-20030730/
    I don't know whether there are any early implementations.
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Nov 2, 2003
    #2
    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:
    1,470
  2. Replies:
    0
    Views:
    374
  3. Tjerk Wolterink
    Replies:
    2
    Views:
    1,440
    Dimitre Novatchev
    Aug 24, 2006
  4. Martin Honnen

    Re: Reading XML Node-by-Node

    Martin Honnen, Nov 12, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    Martin Honnen
    Nov 12, 2008
  5. Geagleeye

    how to creating new node inside a xml node

    Geagleeye, Aug 2, 2006, in forum: ASP General
    Replies:
    2
    Views:
    199
    Geagleeye
    Aug 3, 2006
Loading...

Share This Page