Dear Friends,
I cannot get, programmatically, the value of the attribute 'id' of the choice compositor when reading a schema. Here's the 'xsd' file I am manipulating with C# within Visual Studio 5:
<?xml version="1.0" encoding="Windows-1252"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) -->
<xs:schema targetNamespace="http://www.tempuri.org" xmlns:q1="http://www.tempuri.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Initial_Category" id="ID_0">
<xs:complexType>
<xs:sequence>
<xs:choice id="ID_1">
<xs:element name="string1" type="xs:string" id="ID_11"/>
<xs:element name="string2" type="xs:string" id="ID_12"/>
</xs:choice>
<xs:choice id="ID_2">
<xs:element name="string3" type="xs:string" id="ID_21"/>
<xs:element name="string4" type="xs:string" id="ID_22"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Surprisingly, I can certainly read he value of the attribute 'id' of all the 'xmlschemaelements': "Initial_Category", "string1", etc.
The same limitation occurs with the sequence compositor.
Is this a limitation of XMLSPY5 or VISUAL STUDIO 5?
Cheers,