Tuesday, April 17, 2012

Display all XML information

Sometimes it's useful to see exactly what fields are coming through the datasource on a DVWP/CQWP and display the values for each of those.


Use this code to display each element with all values set as attributes of that element:


<xsl:template match="/">
   <xmp><xsl:copy-of select="*"/></xmp>
</xsl:template>

No comments:

Post a Comment