"Swanson, Brion" wrote:
> Doesn't that go against the DOM spec to create a Document with no document
> element?
Not really. What if you need to create a Document with a document
element that's namespaced? In that case, in order to actually define
the namespace, you'd have to provide supporting attributes that either
identify the namespace by prefix or as a default namespace. In this
case, just creating a Document that takes an element name will still be
only performing part of the job. So the API may as well allow creating
a document without a root element, and then allow the developer to
create that root as they see fit.
--Tom
--
Tom Bradford --- The dbXML Project --- http://www.dbxml.org/
We store your XML data a hell of a lot better than /dev/null
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]