"Andy Clark" wrote: >Even though you don't want to validate your document, does >this mean that you also don't know the root element name of >your document? I would think that it's required when you >create your doctype node because you can't change it later.
Yes, I do know the root element name at the time of the doctype's creation. However, if at all possible, I'd prefer not to have a doctype at all. When I tried to create a document using the following: recordDoc = dom.createDocument ("", localName, null); I end up with the following exception: org.w3c.dom.DOMException: DOM002 Illegal character at org.apache.xerces.dom.DocumentImpl.createElementNS(DocumentImpl.java:1277) at org.apache.xerces.dom.DOMImplementationImpl.createDocument (DOMImplementationImpl.java:196) I've also tried creating a 'null' doctype (which worked in previous versions of Xerces) using the code: doctype = dom.createDocumentType (null, null, ""); and substituting the 'doctype' variable for the 'null' in the previous line of code. The results are the same. What I'm trying to do is create a new document with no namespace (except perhaps the default one) which I will then manipulate later on. I hope I answered your question and/or made my problem a little clearer. Thank you for your help, Brion Swanson --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]