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. C#
  4. datatable.readxml problem

datatable.readxml problem

Scheduled Pinned Locked Moved C#
xmlhelpquestion
4 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.
  • E Offline
    E Offline
    Eli Nurman
    wrote on last edited by
    #1

    hi all, i have a xml files which the the data is in attributes like this: <detail> <record> <field name='field1' value='value1'/> <field name='field2' value='value2'/> <field name='field3' value='value3'/> <field name='field4' value='value4'/> </record> <record> <field name='field1' value='value1'/> <field name='field2' value='value2'/> <field name='field3' value='value3'/> <field name='field4' value='value4'/> </record> </detail> since datatables read only xml that are formated without attributes how could i load this into a datatable?

    A 1 Reply Last reply
    0
    • E Eli Nurman

      hi all, i have a xml files which the the data is in attributes like this: <detail> <record> <field name='field1' value='value1'/> <field name='field2' value='value2'/> <field name='field3' value='value3'/> <field name='field4' value='value4'/> </record> <record> <field name='field1' value='value1'/> <field name='field2' value='value2'/> <field name='field3' value='value3'/> <field name='field4' value='value4'/> </record> </detail> since datatables read only xml that are formated without attributes how could i load this into a datatable?

      A Offline
      A Offline
      Andrew Rissing
      wrote on last edited by
      #2

      Seems like you'll create code to parse/load it into a table or use an XSL transform and then load it via ReadXml.

      E 1 Reply Last reply
      0
      • A Andrew Rissing

        Seems like you'll create code to parse/load it into a table or use an XSL transform and then load it via ReadXml.

        E Offline
        E Offline
        Eli Nurman
        wrote on last edited by
        #3

        Any idea of a xsl/xps generator for attributed XML?

        A 1 Reply Last reply
        0
        • E Eli Nurman

          Any idea of a xsl/xps generator for attributed XML?

          A Offline
          A Offline
          Andrew Rissing
          wrote on last edited by
          #4

          Sorry, you'll have to do some googling. I don't know of any.

          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