Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. binding xml data to dataset

binding xml data to dataset

Scheduled Pinned Locked Moved C#
wpfwcfxmlhelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karthi84
    wrote on last edited by
    #1

    hi, i have an xml document like this <Test xmlns=""> <Info> <ReturnParameter> <name>PkidID</name> <value>1<value> <name>CustNo</name> <value>A1258</value> </ReturnParameter> </Info> <Status>1</Status> <Message>Not Found</Message> </Test> i need to fill this to a dataset so that in can be binded to a gridview. please help me in how to bind this xml to a dataset

    D 1 Reply Last reply
    0
    • K karthi84

      hi, i have an xml document like this <Test xmlns=""> <Info> <ReturnParameter> <name>PkidID</name> <value>1<value> <name>CustNo</name> <value>A1258</value> </ReturnParameter> </Info> <Status>1</Status> <Message>Not Found</Message> </Test> i need to fill this to a dataset so that in can be binded to a gridview. please help me in how to bind this xml to a dataset

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can use Dataset.ReadXml.

      K 1 Reply Last reply
      0
      • D dan sh

        You can use Dataset.ReadXml.

        K Offline
        K Offline
        karthi84
        wrote on last edited by
        #3

        i tried with that and got an error 'Illegal characters in path.', and please check with the xml structure that i have given. so i the dataset the values will be like this statiid custNo status value --------- ------ ------ ----- 1 A1258 1 not found and to your knowledge the xml data is in a string variable in this format. thanks & regards karthi

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups