But isn't adding without a namespace the same result as adding with the
default namespace? Because if there is a default namespace, don't all
elements that are not assigned a namespace then put in the default
namespace?

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544
 

-----Original Message-----
From: Edwin Dankert [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 10, 2005 9:35 AM
To: David Thielen
Cc: dom4j-user@lists.sourceforge.net
Subject: Re: [dom4j-user] Element.addElement() & namespaces

> Calling Element.addElement("name") gives different results from
> Element.addElement("name", "default_uri") where in the parent
> (not root) node I have xmlns="default_uri"

No, they should be different, in the first example you add a
'name' element without a namespace.

In the second example you add a 'name' element with the
'default_uri' namespace.

Regards,
Edwin

--
http://www.edankert.com/



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to