[jdom-interest] namespace declarations in the top element

Jason Hunter jhunter at servlets.com
Tue Jul 2 17:58:40 PDT 2002


The XMLOutputter then knows it's unnecessary to place the declarations
on child elements.


John Caron wrote:
> 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
> xmlns:xlink="http://www.w3.org/1999/xlink">
> 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
> namespaces?
> thanks for any help.
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list