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?

    0