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

Note

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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.