SPDisposeCheck xsl for viewing xml output

XML Structure we get after running SPDisposeCheck command line:



After applying XSL:


How to get this:

1. Save below code with name “SPDisposeChecker.xsl”

<?xml version=”1.0″?>

<xsl:stylesheet version=”1.0″

<xsl:template match=”/”>
<h2><a href=”http://gadekarsatish.blogspot.com”>SPDisposeCheck</a></h2&gt;
<table border=”1″>
<tr bgcolor=”#9acd32″>

<xsl:for-each select=”ArrayOfProblem/Problem”>
<td><xsl:value-of select=”ID”/></td>
<td><xsl:value-of select=”Module”/></td>
<td><xsl:value-of select=”Method”/></td>
<td><xsl:value-of select=”Assignment”/></td>
<td><xsl:value-of select=”Line”/></td>
<td><xsl:value-of select=”Notes”/></td>


2. Add below line in xml obtained from command line

<?xml-stylesheet type=”text/xsl” href=”SPDisposeChecker.xsl”?>

3. Save the xml and double click on it.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s