Error during schema validation
Src-element.3: Element 'title' It 's Both A' type 'Attribute And A' anonymous Type 'Child. Only One Of These Is Allowed For An Element.
The scheme itself (piece) looks like this:
<xs:element name="organization"> <xs:complexType> <xs:sequence> <!-- ΠΠ°ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΎΡΠ³Π°Π½ΠΈΠ·Π°ΡΠΈΠΈ --> <xs:element type="xs:stringValue" name="title"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute type="xs:globalUniqueIdentifier" name="from_vedo_guid"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
As I understood, validation found 2 types on an element. My task is to have an element with type xs:stringValue
and an attribute that has type xs:globalUniqueIdentifier
.
The element itself has the form:
<xs:organization> <xs:title xs:from_vedo_guid="mvr_guid_simple_test">ΠΠΈΠ½Π²ΠΎΡΡΠΎΠΊΡΠ°Π·Π²ΠΈΡΠΈΡ Π ΠΎΡΡΠΈΠΈ</xs:title> </xs:organization>
Please tell me how to fix?