![]() |
Visio 2002 Developer's Survival Pack Tools and Samples |
Chapter 25: XML | |
![]() ![]() |
Folder | Description |
SolutionXML | Simply provides the sample document with the SolutionXML data as discussed in the book. It's useful to inspect this with XML Browser. |
xml_view | Sample application described in the book demonstrating how to use MSXML parser to read a Visio XML file, find some nodes of interest, and create an HTML report output. Also includes anXSL way of doing the same thing. |
xml_gen | Shows how to use MSXML parser to read a "base" Visio XML file, and add custom data (eg: shapes and connectors). |
Note: please see the general Visual Basic Samples notes here before proceeding!
You can run the already compiled demo program, but running in the VB environment in conjunction with inspecting the source code is probably more informative. The demo has four buttons, which function as follows:
In addition, file MyBasicDocHTM.htm contains HTML code which instructs a browser (Internet Explorer at least!) to feed the vdx and xsl files to the XML parser and produce a report equivalent to the one demoed in the VB sample code.
This sample represents scenarios where you want to generate Visio documents programmatically without using Visio itself. Examples include web servers responding to user requests by generating drawings on the fly. This sample has a single button that runs the process. The code loads a base document, and embellishes it with some specific shapes. Of some interest is the demonstration that you don't have to write all the glue formulas to get connectors to glue -- you can just supply minimal Connects data.
Article Created: 2001-06-01 Last edit: Last edit: 01-06-30 Graham Wideman
Go to: DiagramAntics.com