[jdom-interest] output with namespace only on root element
tballen at copart.com
tballen at copart.com
Mon Jun 9 09:48:38 PDT 2003
OK. I think the light bulb over my head just switched on.
The child elements do not automatically inherit the namespace of my *named*
namespace ("cprt").
Is that right?
The example has <y xmlns:"http://foo.com">
The z element inherits the "http://foo.com"> namespace *only* because the
<y> element does not have a namespace prefix.
Is that right?
Thanks for the replies.
At 11:37 AM 6/9/2003 -0400, Elliotte Rusty Harold wrote:
>At 11:32 AM -0400 6/9/03, tballen at copart.com wrote:
>>Perhaps I am misunderstanding how namespaces work.
>>How is my example different that the one in the JDOM FAQ?
>>http://www.jdom.org/docs/faq.html#a0260
>
>Those are using the default namespace (no prefix). Your example is not.
>--
>
> 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
>_______________________________________________
>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