none
DTD XML Support RRS feed

  • Question

  • <xs:element name="Item">
    <
    xs:complexType>
    <
    xs:sequence>
    <
    xs:element ref="Id" />
    <
    xs:element ref="Code" />
    <
    xs:element ref="Quantity" />
    <
    xs:element ref="Unit-Price" />
    <
    xs:element ref="Description" />
    <
    xs:element ref="Url" />
    <
    xs:element ref="Taxable" />
    <
    xs:element minOccurs="0" maxOccurs="1" ref="Thumb" />
    <
    xs:element minOccurs="0" maxOccurs="unbounded" ref="Option" />
    <
    xs:element minOccurs="0" maxOccurs="1" ref="OptionLists" />
    </
    xs:sequence>
    <
    xs:attribute name="num" type="xs:string" />
    </
    xs:complexType>
    </
    xs:element>
    <
    xs:element name="Id" type="xs:string" />
    <
    xs:element name="Code" type="xs:string" />
    <
    xs:element name="Quantity" type="xs:string" />
    <
    xs:element name="Unit-Price" type="xs:string" />
    <
    xs:element name="Description" type="xs:string" />
    <
    xs:element name="Url" type="xs:string" />
    <
    xs:element name="Taxable" type="xs:string" />
    <
    xs:element name="Thumb" type="xs:string" />
    <
    xs:element name="OptionLists">
    <
    xs:complexType>
    <
    xs:sequence>
    <
    xs:element minOccurs="0" maxOccurs="unbounded" ref="OptionList" />
    </
    xs:sequence>
    </
    xs:complexType>
    </
    xs:element>
    <
    xs:element name="OptionList">
    <
    xs:complexType>
    <
    xs:sequence>
    <
    xs:element minOccurs="0" maxOccurs="unbounded" ref="OptionValue" />
    </
    xs:sequence>
    <
    xs:attribute name="name" type="xs:string" use="required" />
    </
    xs:complexType>
    </
    xs:element>
    <
    xs:element name="OptionValue" type="xs:string" />
    <
    xs:element name="Option">
    <
    xs:complexType>
    <
    xs:simpleContent>
    <
    xs:extension base="xs:string">
    <
    xs:attribute name="name" type="xs:string" use="required" />
    </
    xs:extension>
    </
    xs:simpleContent>
    </
    xs:complexType>
    </
    xs:element>

    The problem is that I see all the items, then all the options - the options aren't within a <item> and </item> for each item as I would expect.

    Any help would be greatly appreciated.
    Thanks

    Wednesday, June 3, 2009 11:54 AM

All replies

  • Can you supply some more information here. How is this DTD being produced? What is the relationship of this to DataSet?

    Thanks
    Chris Robinson
    Program Manager - DataSet
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, June 3, 2009 3:45 PM