[jdom-interest] Namespace help
Li Xu
Lxu at copyright.com
Thu Jul 25 06:59:29 PDT 2002
> > but XMLOutputter is giving this:
> >
> > ===============
> > ===============
> > <root_elem xmlns="http://my.com" ....>
> > <level2 xmlns="">
> > <level3>xyz</level3>
> > </level2>
> > </root_elem>
> > ===============
> >
> > Notice <level3> is perfectly fine without any namespace?
> Please tell me what I'm missing here.
>
> Right, because <level2> and <level3> are both not in namespaces,
> and semantically, that's what this document says.
>
So why didn't it print <level3 xmlns=""> just like <level2> then?
More information about the jdom-interest
mailing list