buildingSMART / mvdXML

Repository used by the mvdXML group to support mvdXML specification and implementation.
28 stars 10 forks source link

mvdXML v1.2 schema problems? #7

Closed pjanck closed 3 years ago

pjanck commented 3 years ago

I've taken the current Draft9 of the schema (https://github.com/buildingSMART/mvdXML/blob/master/mvdXML1.2/xsd/mvdXML_V1-2_Draft9.xsd) and ran it through VisualStudio xsd utility. I get these errors (sorry for German language):

Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.8.3928.0]
Copyright (C) Microsoft Corporation. All rights reserved.

Schema validation warning: Das Inhaltsmodell eines komplexen Typs muss aus 'annotation' (falls vorhanden) bestehen, gefolgt von Null oder einem der folgenden Werte: 'simpleContent', 'complexContent', 'group', 'choice', 'sequence' oder 'all', gefolgt von Null oder mehreren 'attribute' bzw. 'attributeGroup', gefolgt von Null oder einem 'anyAttribute'. Line 295, position 10.

Schema validation warning: Das Inhaltsmodell eines komplexen Typs muss aus 'annotation' (falls vorhanden) bestehen, gefolgt von Null oder einem der folgenden Werte: 'simpleContent', 'complexContent', 'group', 'choice', 'sequence' oder 'all', gefolgt von Null oder mehreren 'attribute' bzw. 'attributeGroup', gefolgt von Null oder einem 'anyAttribute'. Line 342, position 10.

Error: Schema .\mvdxml_v1.2.xsd could not be validated.

It seems that the order of <xs:attribute> and <xs:sequence> must be changed.

MatthiasWeise commented 3 years ago

see post to https://github.com/buildingSMART/mvdXML/issues/10

pjanck commented 3 years ago

@MatthiasWeise you can just merge the PR #8 and this issue gets resolved immediately.