"Steven N. Hirsch" <[EMAIL PROTECTED]> writes: > On Wed, 3 Apr 2002, Steven N. Hirsch wrote: > > > I can't figure out for the life of me how to generate an XML Declaration > > node in the latest version of Xerces-P. The xerces-c spec mentions a > > method called DOM_XMLDecl, but this does not seem to exist.
This is one of the bits that suffered during the changeover from DOM to IDOM. The XML decl node support that existed in the old DOM was apparently not part of the spec, and therefore it got axed in IDOM. If you want to add one, you have to manually print it out to the file before printing out the other stuff. > Also, in the same vein, how do I create and write out a document without a > Document Type Declaration? Or, if this isn't possible, a DocumentType > without a DTD (not validated). Given that createDocument() requires you to create a doctype node, my suggestion is that you delete the doctype node after you create the document. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
