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

  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. 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:
    1,908
  2. Replies:
    0
    Views:
    483
  3. Mikael P
    Replies:
    1
    Views:
    629
    Soren Kuula
    Jan 27, 2004
  4. jkflens
    Replies:
    2
    Views:
    1,735
    jkflens
    May 30, 2006
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,715
    Dimitre Novatchev
    Aug 24, 2006
  6. njsimha
    Replies:
    0
    Views:
    927
    njsimha
    Sep 16, 2008
  7. Tony B

    Insert a new node into an XML file

    Tony B, Feb 9, 2004, in forum: ASP General
    Replies:
    5
    Views:
    269
    Chris Barber
    Feb 9, 2004
  8. Geagleeye

    how to creating new node inside a xml node

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