I'm new to xsd. I'm trying to create a xsd so that my xml should be in the following way..
<Info>
<Val name="n_1">A</Val>
<Val name="n_2">123</Val>
<Val name="n_3">2012-05-05T00:00:00</Val>
</Info>
The xsd which I created is in this way..
<xs:element name="Info">
<xs:complexType>
<xs:sequence>
<xs:element name="n_1" type="xs:string"/>
<xs:element name="n_2" type="xs:integer"/>
<xs:element name="n_3" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
</xs:element>
This obviously did not help in meeting my requirements.. But at this point of time I'm struck about one thing .. how to create 3 elements "val" whose attribute value is different... Even if I make it somehow then i will get list of lists error.. how can I manage that?
I'm actually writing this xsd so that my data in excel can be converted to xml.. To add something about my excel, one row is a set in which one column is Info (worst thing comes here :| as I have 3 Val's for one Info) ...
I initially thought this xml is wrong but I was wrong.. it is a standard output/input xml..
Any help in achieving this would be appreciable.
Thanks in advance.. :)