Exporting rule sets to XML
Even though there is an option to import a rule set from another Visio document, I know that some rules developers would like to export and import rule sets to XML. This allows rule sets to be stored, restored, and analyzed more easily.
I decided that the XML structure exported should mimic the Visio XML format, and thus use a part of the Visio XML schema. This means using the same namespaces, but it would mean that any XSL stylesheets developed for our export would also work for the standard Visio XML format (*.vdx and *.vtx
files).
I decided to include the option to export the issues in a document too, because someone may have the need to use them in an external program. Having the issues available in XML format means that they could be displayed as a table, for example, so that they can be reviewed independently.
The ExportDocument()
method first constructs a title for SaveFile
dialog, depending upon the include
options provided. The default name preferred for...