This is what I've tried. I'm new to XML and XSLT but it seems that the "*[contains(name(), 'Cust')]" does not work because it returns the complete xml file content without filtering.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
Hi!,
I have this sample xml document :
<?xml version="1.0" ?>
<?xml-stylesheet href="TestFile.xsl" type="text/xsl" ?>
<CustList>
<Custb x="x">
<b>Test</b>
<Custa>z</Custa>
</Custb>
<z x="x">
<Custa>z</Custa>
</z>
</CustList>
I need to create a new document containing only element...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.