My input xml has embedded html tags in Emp_Name and Country Elements and I need to strip off only html tags to get the below desired output.
Could you please assist how this can be achieved in XSLT.
Input XML:
<root>
<Record>
<Emp_ID>288237</Emp_ID>
<Emp_Name> <br>John</br></Emp_Name>
<Country><p>US</p></Country>
<Manager>Wills</Manager>
<Join_Date>5/12/2014</Join_Date>
<Experience>9 years</Experience>
<Project>abc</Project>
<Skill>java</Skill>
</Record>
Desired Output:
<root>
<Record>
<Emp_ID>288237</Emp_ID>
<Emp_Name>John</Emp_Name>
<Country>US</Country>
<Manager>Wills</Manager>
<Join_Date>5/12/2014</Join_Date>
<Experience>9 years</Experience>
<Project>abc</Project>
<Skill>java</Skill>
</Record>
If you know in advance which HTML tags are used, you can do:
XSLT 1.0
EDIT:
Then how about:
XSLT 1.0