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. XML as Database

XML as Database

Scheduled Pinned Locked Moved XML / XSL
databasexmlquestionannouncement
3 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.
  • M Offline
    M Offline
    MikeMinsk
    wrote on last edited by
    #1

    Hello all, i have a windows application which needs a small database (each record has 7 items) and i am thinking as using xml as database. I will need to add, delete, update the records (and show them ofcourse in a datagrid). Is there any documentation (article or sample code) to look at? Thanks a lot Knowledge is a power.

    E C 2 Replies Last reply
    0
    • M MikeMinsk

      Hello all, i have a windows application which needs a small database (each record has 7 items) and i am thinking as using xml as database. I will need to add, delete, update the records (and show them ofcourse in a datagrid). Is there any documentation (article or sample code) to look at? Thanks a lot Knowledge is a power.

      E Offline
      E Offline
      Edbert P
      wrote on last edited by
      #2

      Using xml as database in the simplest sense is basically storing data as text file in xml format (that is, unless you're using SQL Server 2005 to store your xml). What you need to learn is XPath, and more specifically XQuery. These are comparable to understanding SQL syntax to manipulate database. The XmlDocument class provides you several functions to load and save text files, and to manipulate xml nodes within. I believe the ToDoList[^] application in CodeProject uses Xml to store data, if you want to look at a sample project. Hope that helps :) Edbert Sydney, Australia "A day without sunshine is like, you know, night." -- modified at 0:39 Tuesday 7th February, 2006

      1 Reply Last reply
      0
      • M MikeMinsk

        Hello all, i have a windows application which needs a small database (each record has 7 items) and i am thinking as using xml as database. I will need to add, delete, update the records (and show them ofcourse in a datagrid). Is there any documentation (article or sample code) to look at? Thanks a lot Knowledge is a power.

        C Offline
        C Offline
        ChesterPoindexter
        wrote on last edited by
        #3

        Marc Clifton's XmlDb is a good example. http://www.codeproject.com/dotnet/XmlDb.asp

        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