Help w/Docuverse DOM SDK (Please)

Don Park donpark at
Thu Mar 11 05:59:23 GMT 1999


>DOM dom = new com.docuverse.dom.DOM();
>dom.setProperty("sax.driver", "");
>Document x = dom.createDocument("e1");
>Element y = x.createElement("e2");
>I would think this would generate:
>   <e2></e2>

I don't know what y.appendChild(root) is supposed to be but you have to
insert your "e2" element into your document.

// creates a document with "e1" as document element
Document doc = dom.createDocument("e1");

// make sure document root exists
Node e1 = doc.getDocumentElement();
if (e1 == null)
    e1 = doc.appendChild(doc.createElement("e1"));

// create and insert e2 into e1

at this point, you will have:



Don Park

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list