XML, XSD - Nesting Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David++

    XML, XSD - Nesting Question

    Hi folks,

    I have a XSD in VS2005. I have several tables in the DataSet. Some tables
    are related via a primary key and are configured to have a 'Nested Relation'.
    When I generate the XML from the DataSet the XML does not show as nested i.e.
    it generates -

    - <Loader>
    <Application>Pr icingLoad</Application>
    <Type>extpricel oad</Type>
    <Loader_Id>0</Loader_Id>
    </Loader>
    - <Mapping>
    <tbl_name>Price Matrix</tbl_name>
    <Bkt_Function>i </Bkt_Function>
    </Mapping>

    And I would like -

    - <loader>
    <Application>Pr icingLoad</Application>
    <Type>extpricel oad</Type>
    - <mapping>
    <tbl_name>Price Matrix</tbl_name>
    <Bkt_Function>i </Bkt_Function>
    </mapping>
    </loader>

    The table 'Loader' has three columns - Loader_Id (Primary key), Application
    and Type . The table 'Mapping' has three columns - Loader_Id, tbl_name,
    Bkt_Function.
    I thought that by selecting 'Nested relation' in the XSD designer that the
    resulting XML would be nested?

    Any ideas as to what is wrong?

    Thanks in Advance!

    David


Working...