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. PLZ I Want to used xml file as database( how to add,update,delete and Search)

PLZ I Want to used xml file as database( how to add,update,delete and Search)

Scheduled Pinned Locked Moved C#
csharpdatabasexmltutorialannouncement
6 Posts 4 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
    DiefAlla
    wrote on last edited by
    #1

    PLZ I Want to used xml file as database(how to add,update,delete and Search) i will make the database program using interface C# and DataBase thanks.:rose:

    D C B 3 Replies Last reply
    0
    • D DiefAlla

      PLZ I Want to used xml file as database(how to add,update,delete and Search) i will make the database program using interface C# and DataBase thanks.:rose:

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can want all you want. It's not going to change the fact that XML is NOT a database. You cannot use SQL statements to navigate through the tables. You have to use the various XML methods to modify your tables, but XML is very inefficient at it.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      C 1 Reply Last reply
      0
      • D DiefAlla

        PLZ I Want to used xml file as database(how to add,update,delete and Search) i will make the database program using interface C# and DataBase thanks.:rose:

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Unless your data set is very small, this smells of disaster. XPath is how you search XML. The DOM via the XMLDocument class is how you interact up add/update/delete/search.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          You can want all you want. It's not going to change the fact that XML is NOT a database. You cannot use SQL statements to navigate through the tables. You have to use the various XML methods to modify your tables, but XML is very inefficient at it.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Dave Kreskowiak wrote:

          You can't want all you want.

          I don't think that is what you meant... :P

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          D 1 Reply Last reply
          0
          • C Christian Graus

            Dave Kreskowiak wrote:

            You can't want all you want.

            I don't think that is what you meant... :P

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Whoops. I knew that didn't look right when I posted it...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            1 Reply Last reply
            0
            • D DiefAlla

              PLZ I Want to used xml file as database(how to add,update,delete and Search) i will make the database program using interface C# and DataBase thanks.:rose:

              B Offline
              B Offline
              BAIJUMAX
              wrote on last edited by
              #6

              If You really want you can.Once again Is that you really want to do. check DataSet members ReadXML()/WriteXML() load XML Store to Dataset using ReadXML ( on Application Initialization ) Manipulate ( add/delete etc.. ) this DataSet during application life cycle. On ApplicationExit use WriteXML. "Sometimes solutions will be as simple as 1=1 , confused right :doh:" By BAIJUMAX

              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