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
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to load xml file to a datatable

How to load xml file to a datatable

Scheduled Pinned Locked Moved XML / XSL
xmltutorial
3 Posts 1 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.
  • D Offline
    D Offline
    Diego F
    wrote on last edited by
    #1

    Hello. I'm newbie in working with xml files. I need to load a xml file to a datatable. First thing I saw is the dataset.ReadXml method, but I get an exception: The same table (mSCAddress) cannot be the child table in two nested relations. The nesting level is quite deep, and later I have to move throw the structure to create a datatable with some relevant data. I don't know where to start.

    Regards, Diego F.

    D 1 Reply Last reply
    0
    • D Diego F

      Hello. I'm newbie in working with xml files. I need to load a xml file to a datatable. First thing I saw is the dataset.ReadXml method, but I get an exception: The same table (mSCAddress) cannot be the child table in two nested relations. The nesting level is quite deep, and later I have to move throw the structure to create a datatable with some relevant data. I don't know where to start.

      Regards, Diego F.

      D Offline
      D Offline
      Diego F
      wrote on last edited by
      #2

      I detail a bit the file structure. ... ... ... As you see, inside record section I have two posibilities. I can have just one data or a composite section, that contains more than one data sections. Inside data, there are different possibilities also. Is that structure a problem to load the file? Regards, Diego F.

      D 1 Reply Last reply
      0
      • D Diego F

        I detail a bit the file structure. ... ... ... As you see, inside record section I have two posibilities. I can have just one data or a composite section, that contains more than one data sections. Inside data, there are different possibilities also. Is that structure a problem to load the file? Regards, Diego F.

        D Offline
        D Offline
        Diego F
        wrote on last edited by
        #3

        Well, as I tested, the problem is having as a nested element inside and inside I can't change the file structure. Can you tell me other way to do that?

        Regards, Diego F.

        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