Using the same CreateDOMDocument sample, you can do something like this:
DOM_DOMImplementation impl;
DOM_DocumentType doctype = impl.createDocumentType("myDoctype",
&
Hi,
I ve managed to create a DOMtree from scratch referring the example
CreateDOMDocument and can save it as a file.
Now how to i include the info in the DOM tree so the
parser can include this info when creating the xml file.
Thanks much,
sp
Message -
From: "Born Franz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 06, 2000 8:32 AM
Subject: CreateDOMDocument
Maybe I was a little too early in getting CreateDOMDocument and trying to
run it with xerces1.0.1 under VC++5.0.
Especially as I f
>Now I'd like to know, how to parse a given DTD
> separately, so I can use it for validation of
> the new created document.
Right now, the only way to do it is to make a little in memory file that
references the DTD, parse that, which will fill up the DTD. Then, then next
time you call parse()
Maybe I was a little too early in getting CreateDOMDocument and trying to
run it with xerces1.0.1 under VC++5.0.
Especially as I faced the problem, that
DOM_Element rootElem = doc.getDocumentElement();
returned a "0-pointer".
I applied the following changes (#else) and no