I have this XML file:
error Code
msg
Use :
<xsl:copy-of select="/Response/ResponseParameters/node()"/>
The "//"
abbreviation is very expensive (causes the complete XML document to be scanned), and should be avoided.
One way is to pass a parameter containing the node name into the XSLT and use the parameter passed in with the name() function to match the dynamic node.
Edit:
But in this simple case either of the other answers suggesting ResponseParameters//* or ResponseParameters/* are a far simpler solution.
<xsl:copy-of select="Response/ResponseParameters//*"/>