views:

33

answers:

1

hi

i need to store additional metadata in a schema.

simplified:

<xs:schema>
    <xs:complexType name="CustomType" m:Representation="BlaBla">...</xs:complexTyp>
</xs:schema>

is it possible?

i have seen somthing like that in ms-datasets they use an additional an attribute "msprop". but i've to see the source of urn:schemas-microsoft-com:xml-msprop

A: 

You might want to consider using xsd:appinfo for that purpose. This can contain any XML content:

<xs:schema>
    <xs:complexType name="CustomType">
        <xs:annotation>
            <xs:appinfo>
               <representation>BlaBla</representation>
            </xs:appinfo>
        </xs:annotation>
    </xs:complexType>
</xs:schema>
xcut