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. XML / XSL
  4. XmlElement to DataSet

XmlElement to DataSet

Scheduled Pinned Locked Moved XML / XSL
helpquestion
3 Posts 3 Posters 1 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.
  • A Offline
    A Offline
    Aubyone
    wrote on last edited by
    #1

    Can any one help I reading it a XMLstring form a web service, it read in as a XmlElement. The Xmlstring is a dataset, How can I get the XmlString in the XmlElement in to a dataset

    M J 2 Replies Last reply
    0
    • A Aubyone

      Can any one help I reading it a XMLstring form a web service, it read in as a XmlElement. The Xmlstring is a dataset, How can I get the XmlString in the XmlElement in to a dataset

      M Offline
      M Offline
      Mr Rogers
      wrote on last edited by
      #2

      DataSet.ReadXml(XmlElement.InnerText)

      1 Reply Last reply
      0
      • A Aubyone

        Can any one help I reading it a XMLstring form a web service, it read in as a XmlElement. The Xmlstring is a dataset, How can I get the XmlString in the XmlElement in to a dataset

        J Offline
        J Offline
        Javier Lozano
        wrote on last edited by
        #3

        Use an System.Xml.XmlNodeReader to read the data into the set Example: XmlNodeReader reader = new XmlNodeReader(); DataSet ds = new DataSet(); ds.ReadXml(reader); reader.Close(); This should work! ~Javier "I don't suffer from insanity, I enjoy every minute of it." -- Unknown

        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