Eric Hodges wrote: > > I'm still trying to add a DocumentType from to a Document.
I just worked around this using JAXP by creating a dummy document of the right type and then reading it in. This restriction is probably a limitation because: http://www.w3.org/TR/2000/PR-DOM-Level-2-Core-20000927/core.html#i-Document interface Document : Node { readonly attribute DocumentType doctype; [...] So it would appear that DOM Level 2 doesn't expect anyone to create an XML document using DOM, just to read and modify it... all the best, Don -- Don Brutzman Naval Postgraduate School, Code UW/Br Root 200 work 831.656.2149 Monterey California 93943-5000 USA fax 831.656.3679 Virtual worlds/underwater robots/Internet http://web.nps.navy.mil/~brutzman