[jdom-interest] namespace declarations in the top element

John Caron caron at unidata.ucar.edu
Tue Jul 2 12:24:29 PDT 2002

I am constructing a JDOM Document, then using XMLOutputter to write an XML
doc. I want to put namespace declarations in the top element, eg:
<catalog name="Example" xmlns=http://www.unidata.ucar.edu/thredds

I cant write these attributes directly, so how do I force them to appear
there, instead of multiple times in contained elements that use those

thanks for any help.

More information about the jdom-interest mailing list