[jdom-interest] XmlOutputter - printNamespace - NO_NAMESPACE outputs xmlns="", bug?

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu Jul 3 04:59:14 PDT 2003


At 7:09 AM +0200 7/3/03, Eric VERGNAUD wrote:


>I still think there is a counter-intuitive behaviour with namespaces when
>creating a document. When you write:

JDOM always puts each element in exactly the namespace you specify. 
If you don't specify a namespace, the element doesn't get a 
namespace. I think that's quite intuitive.
-- 

   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA



More information about the jdom-interest mailing list