Hi Graham,

take a look at the dom.DOMGenerate.java example that comes with Xerces in the samples/dom directory

Regards,
Vlad


Please respond to xerces-j-user <[EMAIL PROTECTED]>

Sent by:        minfrin <[EMAIL PROTECTED]>

To:        Xerces List <[EMAIL PROTECTED]>
cc:        

Subject:        Creating a document, rather than parsing one

Hi,

(I am still getting my head around this stuff, so please forgive what
might be a stupid question).

Using the DOM parser, I can parse an XML file, and return a Document.
With this Document, I can access methods to add nodes, etc. What I can't
figure out is how to make a blank Document, ie a Document that I can
create from scratch, which can then be saved to an XML file.

What is the correct way to initiate new XML files (as opposed to parsing
existing ones)?

Regards,
Graham
--
-----------------------------------------
[EMAIL PROTECTED]                                  "There's a moon
                                                                                    over Bourbon Street
                                                                                                     tonight..."


Reply via email to