Greetings,
I have an XSD file which contains definitions of keys through
xsd:key elements. I was hoping that when I read it in via
loadXMLSchema, that the key defined in the XSD file would
become the primary key. Can anyone know if this is supported?
If it is, perhaps I'm just incorrectly defining my key in my file,
included below.
Thanks...
--------
I have an XSD file which contains definitions of keys through
xsd:key elements. I was hoping that when I read it in via
loadXMLSchema, that the key defined in the XSD file would
become the primary key. Can anyone know if this is supported?
If it is, perhaps I'm just incorrectly defining my key in my file,
included below.
Thanks...
--------
Code:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:datasources.smartclient.com" xmlns:tns="urn:datasources.smartclient.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name ="users"> <xsd:complexType> <xs:sequence> <xsd:element name ="user"> <xsd:complexType> <xsd:sequence> <xsd:element name="id" type="xsd:integer"/> <xsd:element name="name" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xs:sequence> </xsd:complexType> <xsd:key name="user_id"> <xs:selector xpath="user" /> <xs:field xpath="@id" /> </xsd:key> </xsd:element> </schema>
Comment