Wrong and right!

WRONG: It is actually traversing all the children and
setting the namespace (adding the attribute xmlns=""
to every "servlet" element).

RIGHT: It should not be doing that. How do I make it
stop doing that?

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  <servlet xmlns="">
           ^^^^^^^^
           Why is it inserting the above xmlns=""?

-George

--- Edwin Dankert <[EMAIL PROTECTED]> wrote:
> Setting a namespace on an element does not traverse
> it's children. 
> 
> You will have to set the namespace explicitly for
> every (child)
> element that's in
> this namespace.
> 
> Regards,
> Edwin
> 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to