I have this xml
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UserInfo xmlns="">
<name>ss</name>
<addr>XXXXXX</addr>
</UserInfo>
</Request>
I want the output xml as
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UserInfo>
<name>ss</name>
<addr>XXXXXX</addr>
</UserInfo>
</Request>
Please help me in xsl..
Your input and output are semantically the same, but if you want to remove that
xmlns=""
, this will work:When run on your sample input, the result is: