<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="utf-8" indent="yes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> <xsl:template match="CustomerAccount"> <xsl:copy-of select="//CustomerAccount" /> </xsl:template> </xsl:stylesheet>
对应的XML结构:
<CustomerAccountInput messageName='CreateCustomer' > <CustomerAccount> ... </CustomerAccountInput> </CustomerAccount>
online工具:
http://xslt.online-toolz.com/tools/xslt-transformation.PHP
原文链接:https://www.f2er.com/xml/298613.html