Show AllShow All

Visio Schema Overview

Microsoft® Office Visio® 2003 provides an XML vocabulary, or schema, that defines all the XML tags for a Visio document's data elements and attributes and their containment relationships. Software tools and programs that handle XML use the schema to validate XML files.

Note  In previously published materials, including the Microsoft Office Visio 2003 SDK, the XML schema that is explained in this document was referred to as "XML for Visio." From now on, the schema will be known as DatadiagramML.

A DatadiagramML file, like a Visio drawing (VSD) file, contains document-level containers and hierarchical containers of other containers. Following is a graphical representation of the containment hierarchy of a Visio file.

Graphical representation of the containment hierarchy of a Visio file

Representation of containment hierarchy of a DatadiagramML file

DatadiagramML tags represent the containment hierarchy. The following tags describe the preceding graphic:

<VisioDocument>  
      ...
      <StyleSheets>
         <StyleSheet>
         ...
      <Masters>
         <Master>
            <Shapes>
               <Shape>
               ...
         ...
      <Pages>
         <Page>
            <Shapes>
               <Shape>
               ...
         ...

Note  In practice, the StyleSheet, Master, Shape, and Page elements require an ID attribute.

The DatadiagramML hierarchy contains two major structures:

ShowVisioDocument structure

ShowSheet structure

ShowElements that represent sheet cells

ShowElements that represent sheet rows and sections

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp