U
usgog
The client will pass a xsd file to me through my API and it will be
parsed using SAX in JAVA. The XSD format is like following:
<xs:complexType name="Item">
<xs:all>
<xs:element name="item-id" type="xs:string" />
<xs:element name="item-name" type="xs:string" />
</xs:all>
</xs:complexType>
So there will be quite a few Items in the xsd. I want to make sure the
value of <item-id> is unique... So is there any algorithm that I can
use to detect that?
parsed using SAX in JAVA. The XSD format is like following:
<xs:complexType name="Item">
<xs:all>
<xs:element name="item-id" type="xs:string" />
<xs:element name="item-name" type="xs:string" />
</xs:all>
</xs:complexType>
So there will be quite a few Items in the xsd. I want to make sure the
value of <item-id> is unique... So is there any algorithm that I can
use to detect that?