Skip to content

Instantly share code, notes, and snippets.

@iwyg
Created January 15, 2013 12:29
Show Gist options
  • Save iwyg/4538269 to your computer and use it in GitHub Desktop.
Save iwyg/4538269 to your computer and use it in GitHub Desktop.
<data>
<hello>paste your xml here</hello>
<emptynode></emptynode>
<entry>A</entry>
<entry>B</entry>
</data>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="data/*">
<xsl:copy-of select="*[name() = 'entry']"/>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment