Show AllShow All

Loading Files that were Created or Edited Outside of Visio

Third parties can create and edit XML files outside Microsoft® Office Visio® that follow the Visio schema. When Visio opens a VDX file, it checks whether the file is trusted (created by Visio) or untrusted (created or edited outside Visio). If the file is untrusted and contains third-party schema references, Visio attempts to validate the file against the appropriate schema. If an untrusted file fails to pass validation, it will be rejected, and the document will not be loaded into Visio. In all cases Visio will validate the file against the Visio schema.

Visio will not load any XML that fails validation, either against the Visio schema or a third-party schema. If an XML file passes schema validation, Visio will load the file even if it contains recoverable errors. When Visio encounters any such XML that is ambiguous or incomplete, it tries to preserve as much information as possible and continues loading the file.

If Visio is unable to load a file, or if it finds errors in the file, it logs the errors it finds in the error or warning log. For details about errors and warnings, see Error and Warning Messages.

Beginning with Microsoft Office Visio 2003, you can test the validity of changes you make to SolutionXML elements without having to reopen the file in Visio by turning on the XMLValidateOnSave registry key. For more information, see Embedding Custom XML in a DatadiagramML file.

Visio follows certain rules for handling untrusted data; these rules are explained in the following sections.

ShowOrder of XML statements

ShowSparse XML and sparse instances

ShowCell recalculation

ShowInvalid RGB data

ShowInvalid style-linkage attributes

ShowUntrusted Unit attribute

ShowUntrusted text

©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