J
JBB
Hello,
I'd like to have an xsd schema representing an XMl looking like this:
<Object>
<PARAM_A>456</PARAM_A>
<PARAM_B>45</PARAM_B>
<Value>0</Value>
<Value>10</Value>
<Value>12</Value>
<Value>63</Value>
<Value>41</Value>
<Value>53</Value>
<Value>62</Value>
....
<Value>10</Value>
</Object>
it works whith using xs:sequence
<xs:element name="Object">
<xs:complexType>
<xs:sequence>
<xs:element name="PARAM_A" />
<xs:element name="PARAM_B" />
<xs:element name="Value" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
but I'd like to be able to switch the order on PARAM_A and PARAM_B
so that
<Object>
<PARAM_B>45</PARAM_B>
<PARAM_A>456</PARAM_A>
<Value>0</Value>
<Value>5</Value>
<Value>10</Value>
</Object>
wotks too.
then I try the xs:all attribute in stead of xs:sequence but it doesn't work.
<xs:element name="Object">
<xs:complexType>
<xs:all>
<xs:element name="PARAM_A" />
<xs:element name="PARAM_B" />
<xs:element name="Value" maxOccurs="unbounded" />
</xs:all>
</xs:complexType>
</xs:element>
Is it possible to do that?
Thanks,
I'd like to have an xsd schema representing an XMl looking like this:
<Object>
<PARAM_A>456</PARAM_A>
<PARAM_B>45</PARAM_B>
<Value>0</Value>
<Value>10</Value>
<Value>12</Value>
<Value>63</Value>
<Value>41</Value>
<Value>53</Value>
<Value>62</Value>
....
<Value>10</Value>
</Object>
it works whith using xs:sequence
<xs:element name="Object">
<xs:complexType>
<xs:sequence>
<xs:element name="PARAM_A" />
<xs:element name="PARAM_B" />
<xs:element name="Value" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
but I'd like to be able to switch the order on PARAM_A and PARAM_B
so that
<Object>
<PARAM_B>45</PARAM_B>
<PARAM_A>456</PARAM_A>
<Value>0</Value>
<Value>5</Value>
<Value>10</Value>
</Object>
wotks too.
then I try the xs:all attribute in stead of xs:sequence but it doesn't work.
<xs:element name="Object">
<xs:complexType>
<xs:all>
<xs:element name="PARAM_A" />
<xs:element name="PARAM_B" />
<xs:element name="Value" maxOccurs="unbounded" />
</xs:all>
</xs:complexType>
</xs:element>
Is it possible to do that?
Thanks,