Binding XML to a DataSet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmorgan76
    New Member
    • Jun 2007
    • 11

    #1

    Binding XML to a DataSet

    If I load the following XML into a dataset, what should the dataset look like?

    I've loaded the XML into a dataset and then bound the dataset to a gridview, but the only thing the grid view displays is:

    "0 3B4E164D6DBD4B3 283AE1BA80169A4 5D"

    -------------------------------------------------------------------------
    <Response SessionId="3B4E 164D6DBD4B3283A E1BA80169A45D" xmlns="http://schemas.tmareso urces.com/timssws60.xsd">
    <Status Success="true" Message="OK" ErrorCode="0" />
    <Data>
    <List Name="Timss.API .Customer.Custo mers" Type="Timss.API .Customer.Custo mers">
    <Item Key="0000010022 37-0" State="Unchange d">
    <Value Name="MasterCus tomerId" Value="00000100 2237" />
    <Value Name="SubCustom erId" Value="0" />
    <Value Name="IsAbstrac tAuthor" Value="False" />
    <Value Name="LastFirst Name" Value="Abney, Jason" />
    <Value Name="IsAbstrac tReviewer" Value="False" />
    <Value Name="NamePrefi x" Value="" />
    <Value Name="FirstName " Value="Jason" />
    <Value Name="MiddleNam e" Value="KI" />
    </Item>
    </List>
    </Data>
    </Response>
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Obviously it is returning the session id. Here is an artice that may help:
    XML, the DataSet, and a DataGrid

    Comment

    • cmorgan76
      New Member
      • Jun 2007
      • 11

      #3
      Yeah, they're doing exactly what I am doing. I really don't understand why mine isn't working

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Try posting the relevant code.

        Comment

        Working...