VisioDocument Element

Visio XML Reference

The root element of a Microsoft Office Visio document.

Syntax

  <VisioDocument
    [start]
    [key]
    [metric]
    [buildnum]
    [version]
    [DocLangID]>
</VisioDocument>

Attributes

start

Optional long. Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.

key

Optional string. Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.

metric

Optional boolean. Whether to use metric units in the drawing. Set this attribute to True (1) to use metric units; set it to False (0) to use English units.

buildnum

Optional long. The build number of the Visio instance used to create the document.

version

Optional string. The version number of the Visio instance. Microsoft Office Visio 2007 = 12.

DocLangID

Optional int. The unique ID of the user-interface language the user has specified in Microsoft Office Language Settings.

Element properties

Property Value
Name VisioDocument 
Minimum Occurrences
Maximum Occurrences

Element information

Parent elements

None

Child elements

DocumentProperties

DocumentSettings

Colors

PrintProps

FaceNames

StyleSheets

DocumentSheet

Masters

Pages

Windows

EventList

HeaderFooter

VBProjectData

EmailRoutingData

SolutionXML

Remarks

When Visio saves a document in DatadiagramML format, the file includes a namespace. For example, <VisioDocument xmlns="http://schemas.microsoft.com/visio/2003/core">.

In addition, the Visio document contains the name of the schema to be used to validate the file.

See also

Document object