Search
XMLWriter Class
Remarks See Also
 



Saves FlowChartX diagrams into XML files.

 Syntax

VB6  Copy Code

Public Class XMLWriter

C++  Copy Code

class XMLWriter

 Remarks

The XmlWriter class provides a way to save FlowChartX diagrams as XML documents. To save a diagram, create an instance of XmlWriter, set its Document property and invoke the Write or WriteToString methods. Diagrams saved that way can be loaded later using an XmlReader instance.

If you need VariantTag objects associated with diagram elements to be serialized, you must handle the SerializeTag event. Its event handler receives as an argument the object whose tag is to be serialized.

 Example

The following sample saves a diagram as an XML document:

VB6  Copy Code

Dim w As New XMLWriter
w.Document = FlowChart1
w.Write fileName

 See Also