Hi,

Following is the issue that I am facing with namespaces.

 

Let xml 1 be :

 

<P1 xmlns="namespace p1">

                <C1/>

</P1>

 

Let xml 2 be :

 

<C2 xmlns="namespace c2">content</C2>

                

Requriement is that, I want to add <C2> as another child node for <P1>
to get the following output (observe that the namespace of <C2> should
vanish).

 

<P1 xmlns="namespace p1">

                <C1/>

<C2 >content</C2>

</P1>

 

Temporarily, I have converted xml 2 to a string and removed xmlns
attribute using string function and then converted that string to XML.

Is there any direct way for eliminating xmlns attribute from an XML
without using XSLT? 

 

 

 

 

Regards

Sunil Reddy

Software Engineer

Tel  : +91 80 23330799  Ext: 402 

Cell : +91 9886646354

Web : www.rave-tech.com <http://www.rave-tech.com/> 

 

 

 

'Carving a niche in OPD
<http://www.rave-tech.com/downloads/AnandJhaveri_interview.pdf> ' -
Anand Jhaveri, CEO Rave Technologies, Smart Techie Dec'09

 

 


Disclaimer :-

"This communication contains information which is confidential and may also be 
legally privileged.It is for the exclusive use of the intended recipient/s.

If you are not the intended recipient of this mail, please delete it 
immediately and notify the
sender on +91 22 6660 6600 or by return e-mail confirming such deletion. Any 
use, distribution, 
disclosure or copying this electronic mail except by its intended recipient may 
be unlawful.

Rave has scanned this email for viruses but does not accept any responsibility 
once this email 
has been transmitted."

<<image001.jpg>>

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to