xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mukul Gandhi <gandhi.mu...@gmail.com>
Subject Re: Add namespaces declaration to parent element.
Date Thu, 20 Aug 2009 11:09:32 GMT
do you already have the old XML format, and only transformation is
required, to the new format? if yes, I would try to do this with XSLT.

if you are creating the new XML, as part of some program, where use of
Xerces-J is mandatory, then we must find way to solve this problem
with Xerces-J and an API like DOM (which looks like, you are using).

I think, it would be good, if you can pls share some of the core logic
you have written using Xerces-J. I think, that would give us some
insight, about what could be wrong with the logic you have written.

On Thu, Aug 20, 2009 at 2:27 PM, juho<j.houllier@gmail.com> wrote:
>
> Hello,
>
> I want to add namespaces declaration on parent if child and parent have
> different namespaces.
> My wish is to have output like that:
>
> <balise1 xmlns:tec="http://test1">
>  <tec:balise2 />
>  <tec:balise3 />
> </balise>
>
> instead of what i have actually
> <balise1>
>  <tec:balise2 xmlns:tec="http://test1"/>
>  <tec:balise3 xmlns:tec="http://test1"/>
> </balise1>



-- 
Regards,
Mukul Gandhi

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


Mime
View raw message