[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    RE: createElementNS() does not work as expected in new versions of  Xerces (> 2.0.1)
From:       Thomas_Börkel <tbo () ap-ag ! com>
Date:       2003-05-27 11:27:53
[Download RAW message or body]

HI!

Thanks for the clarification.

Regards,
Thomas

> -----Original Message-----
> From: Elena Litani [mailto:elitani@ca.ibm.com] 
> Sent: Montag, 26. Mai 2003 16:35
> To: xerces-j-user@xml.apache.org
> Subject: Re: createElementNS() does not work as expected in 
> new versions of Xerces (> 2.0.1)
> 
> 
> Hi Thomas, 
> 
> As Sander points out, your code does not set the value of xmlns
> attribute.
> 
> Just to clarify the difference in behavior for different Xerces
> versions: in Xerces 2.0.1 the XMLSerializer was automatically 
> performing
> namespace fixup, i.e. adding appropriate namespace declarations. Thus,
> the existing namespace decl on the testNode element was modified to
> include the namespace of testNode.
> In Xerces 2.4.0 this behavior is not available by default. If you want
> XMLSerializer to perform namespace fixup, you need either to 
> use DOM L3
> [1] or use setNamespace method on XMLSerializer.
> 
> [1] http://xml.apache.org/xerces2-j/faq-dom.html#faq-3
> 
> Thank you,
> -- 
> Elena Litani / IBM Toronto
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic