Столкнулся со странным поведением MS Visio 2003 SP2.
Кто знает, почему при чтении файла 12.VDX выдаётся сообщение
[Warning] DataType:
Context: Line 20 --- <VisioDocument><Pages><Page><Shapes><Shape> ID='2'
Description: This file contains a duplicate of an element that can exist only once. Visio has ignored the duplicate element.
а при чтении файла 21.VDX - всё в порядке?
Оба файла соответствуют, на мой взгляд, схеме Visio.xsd.
Файл 12.vdx:
<?xml version="1.0"?>
<VisioDocument xmlns="http://schemas.microsoft.com/visio/2003/core">
<Masters>
<Master ID="7">
<Shapes>
<Shape ID="6">
<Shapes> <Shape ID="5"> </Shape> </Shapes>
</Shape>
</Shapes>
</Master>
</Masters>
<Pages>
<Page ID="0">
<Shapes>
<Shape ID="1" Master="7"> </Shape>
<Shape ID="2" Master="7"> </Shape>
</Shapes>
</Page>
</Pages>
</VisioDocument>
Файл 21.vdx:
<?xml version="1.0"?>
<VisioDocument xmlns="http://schemas.microsoft.com/visio/2003/core">
<Masters>
<Master ID="7">
<Shapes>
<Shape ID="6">
<Shapes> <Shape ID="5"></Shape> </Shapes>
</Shape>
</Shapes>
</Master>
</Masters>
<Pages>
<Page ID="0">
<Shapes>
<Shape ID="2" Master="7"></Shape>
<Shape ID="1" Master="7"></Shape>
</Shapes>
</Page>
</Pages>
</VisioDocument>