hi 

it is easy to generate a xml file from the scratch:

    Document doc=new DocumentImpl();
    Element root=doc.createElement("Envelope");
    doc.appendChild(root);
    Element item=doc.createElement("Sender");
    root.appendChild(item);
    item.appendChild(doc.createTextNode("Mr.A"));
    item=doc.createElement("Receiver");
    root.appendChild(item);
    item.appendChild(doc.createTextNode("Mr.B")); 
    ...

but how to add a DocumentType entry? (<!DOCTYPE Envelope SYSTEM
"thedtd.dtd">)
using CoreDocumentImpl instead of DocumentImpl?
but creatingDocumentType() doesn't work. it does nothing. (no exception, no
error, nothing)

rob
    

    
     \|/                           _________
     -O-                     _____/
     /|\             _______/
~~~~~~~~~~~~~~~~~~~~/
Dipl. Ing. (FH) Robert Heinerman
Siemens PSE BS MT2, Gudrunstr. 11, 1100 Wien
+43 51707 47383, [EMAIL PROTECTED] 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to