Help needed with XML Node insert API

Kumar (4)

Usenet Archive
Joined
Jun 24, 2002
Messages
3
Reaction score
0
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
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
Kumar said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top