Results 1 to 11 of 11

Thread: [RESOLVED] [2008] XML advice, please

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Manchester, England
    Posts
    255

    Resolved [RESOLVED] [2008] XML advice, please

    Hello,
    I've been given a sample XML file in a structure that I haven't handled in VB.NET before (see image below), and would appreciate some guidance.

    When I read the xml file in with:
    Code:
    Dim ds As DataSet = New DataSet("dataset")
    
    ds.ReadXml("prod2.xml")
    
    With DataGridView1
            .DataSource = ds
            .DataMember = ds.Tables(2).TableName
    End With
    I can see that I've got 3 x tables ... "Interface", "Product", "Value".

    What I'm wondering is how do I get the "Value" table linked to "Product"? I was expecting (rightly or wrongly) to see some inherited values from product displayed in my DataGridView. Looking at the structure of the XML file, it seems to imply that there should be some inheritance???
    Attached Images Attached Images  
    Last edited by penguin5000; Jun 18th, 2008 at 05:39 AM.
    At home - VB.NET 2005/2008 Express, Visual Web Developer 2005 Express
    At work - VS 2008 Standard (VB)
    .NET 2.0/3.5


    Visual Studio Express Learning Centre | How do I videos | MSDN VB Express Forum | MSDN VB Developer Centre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width