set values for nested child nodes in a dataset

xml India
  • 15 years ago

    Hi,


    I am using a dataset which takes its schema from an xsd file that i have created.


    The schema comprises nested nodes.


    As an example,


    <Customers>
      <CompanyName>Ana Trujillo Emparedados y helados</CompanyName>
      <Orders>
         <OrderDate>1996-09-18</OrderDate>
            <OrderDetails>
               <OrderWeight>20kg</OrderWeight>
               <ShipVia>International Air</ShipVia>
            </OrderDetails>
      </Orders>
    </Customers>



    Using the above schema, I need to set the values of the OrderDetails i.e. order weight and shipvia in my dataset using C#.


    Can someone help me do this pls.


    Thanx.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.” - Jon Ribbens