Hi,

            Is there any way to change the default namespace in dom4j.

Eg: I have an element whose default namespace is “jabber:client” and need to change to “jabber:server”

<stream xmlns=”jabber:client”>

<presence />

</stream>

            Stream and presence element’s default namespace is “jabber:client” and using dom4j api, presence element is dispatch() from stream element,

 

i.e.

<stream xmlns=”jabber:client”></stream>

 

<presence xmlns=”jabber:client”/>

 

Need to change the default namespace of presence element to “jabber:server” without affecting the stream element namespace i.e. “jabber:client”.

 

i.e.

<stream xmlns=”jabber:client”></stream>

 

<presence xmlns=”jabber:server”/>

 

Please advice me….

Thanks in advance

cheers

pawan

Reply via email to