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. XML and SQL

XML and SQL

Scheduled Pinned Locked Moved C#
databasecsharpxmltutorialquestion
4 Posts 3 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.
  • R Offline
    R Offline
    Radgar
    wrote on last edited by
    #1

    Is there a way to query an XML file via SQL in C#? For example, is it possible to use ado recordsets? What I want to do is use an XML file as db and list, add new, update, delete records... Thanks in advance. Radgar "Imagination is more important than knowledge." - Albert Einstein

    A D 2 Replies Last reply
    0
    • R Radgar

      Is there a way to query an XML file via SQL in C#? For example, is it possible to use ado recordsets? What I want to do is use an XML file as db and list, add new, update, delete records... Thanks in advance. Radgar "Imagination is more important than knowledge." - Albert Einstein

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Why don't you just use the DOM?

      R 1 Reply Last reply
      0
      • A Anonymous

        Why don't you just use the DOM?

        R Offline
        R Offline
        Radgar
        wrote on last edited by
        #3

        I started the code using DOM but the XML database may include more than 1000 records and I want to avoid "for" loops while deleting, updating or adding multiple records. I think doing these with a recordset can be much more faster, easier and stronger. Please, correct me if I'm wrong.

        1 Reply Last reply
        0
        • R Radgar

          Is there a way to query an XML file via SQL in C#? For example, is it possible to use ado recordsets? What I want to do is use an XML file as db and list, add new, update, delete records... Thanks in advance. Radgar "Imagination is more important than knowledge." - Albert Einstein

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #4

          Load the XML in a DataSet with ReadXml. You won't have SQL support, but it will be fairly close to it. Yes, even I am blogging now!

          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