Creating ruleset reports

It is a relatively simple operation to use System.Xml.Xsl and System.Xml.XPath to iterate through the elements in the XDocument created by the getXDocument() method. The result is an HTML page that can be displayed in any browser:

Creating ruleset reports


This is a very utilitarian display. I will let you format the report to your own requirements!

The ReportDocument() method prompts for the name of an HTML document to output to.

 public void ReportDocument( bool includeRulesets, bool includeIssues) { try { string title = ""; if (includeRulesets) title += "RuleSets"; if (includeRulesets && includeIssues) title += " and "; if (includeIssues) title ...

Get Microsoft Visio 2013 Business Process Diagramming and Validation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.