posted 21 years ago
A little correction -
<xsl:copy-of> copies everything in the tree of encompassed by the supplied node and hence <xsl:copy-of select="Address"/> will give the following output -
<Address>
<State>VA</State>
</Address>
But, if you just need <State>VA</State>, you need to modify ur xpath expression as
<xsl:copy-of select="Address/State"/>
The complete output by running the stuff thru an xslt_processor looks like below -
<?xml version="1.0" encoding="UTF-8"?>
<State>VA</State>
No idea as to how to get rid of the
PI <?xml version="1.0" encoding="UTF-8"?>
in the output ........