Hi,
I am new in xslt ,i want to remove any tag from xml file with using xslt .
Can anybody assit me.
Thanks in Advance.
Niranjan Kumar
My XMl file:-
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="emp.xsl"?>
<company>
<employee id="1">
<name>Niranjan<p>tkadakdk sadfafk ff</p></name>
<roll>1</roll>
<contact>Delhi</contact>
</employee>
<employee id="2">
<name>brijesh</name>
<roll>1</roll>
<contact>Noida</contact>
</employee>
<employee id="3">
<name>Rohit</name>
<roll>3</roll>
<contact>Gurgaon<p>rrrr ddd ssss</p></contact>
</employee>
</company>
DESIRED OUTPUT:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="emp.xsl"?>
<company>
<employee id="1">
<name>[B]Niranjan tkadakdk sadfafk ff[/B]</name>
<roll>1</roll>
<contact>Delhi</contact>
</employee>
<employee id="2">
<name>brijesh</name>
<roll>1</roll>
<contact>Noida</contact>
</employee>
<employee id="3">
<name>Rohit</name>
<roll>3</roll>
<contact>[B]Gurgaon rrrr ddd ssss[/B]</contact>
</employee>
</company>