Solved

XML Database Application

Posted on 2003-11-02
8
179 Views
Last Modified: 2010-04-05
Hello,

I'm new to XML and I wanted someone to show me some code to store, modify and delete data in an XML Database.  What I would like to do is create an application to store and look up code snippets.  So, needless to say I need a function to search the XML Database as well.  I know there are freewares available that do this very thing, but I want to learn how to do this myself.  Since my points are running low, I'm going to start this question with a low point value and increase the points as the source code gets more involved until I have framework for my application.  I guess, fallowing this format, what I need is one person knowlageble in this area to help me out.  Thank you.

Gabe
0
Comment
Question by:fibdev
  • 4
  • 3
8 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 9667213
I am a bit new to XML too but I do know that Delphi 7 Enterprise has an XMLBind wizard. With this wizard you can create a simple unit that connects to your XML file and allows you to add, modify and delete data from an XML file. Try to play with it a bit more.
Delphi also has a TDOMComponent, I think, that will open an XML file and allow you access to the nodes within it. But I haven't played with that much yet. At this moment I'm more busy with a tool called XMP Spy and trying to get some time to read books about XML. It seems so easy but once you get into it, wow... Don't underestimate the complexity... ;-)
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9677714
Hi,

You may take advantage by searching Google for my post on XML in the Borland Forums.

HTH,

Andrew
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9677719
Hi again,

And my short introduction to XML in this site, in one of the posts - I don't remember the area.

HTH,

Andrew

P.S.

The tool you mean's called XML Spy :-)
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 3

Author Comment

by:fibdev
ID: 9810565
I'm still trying to resolve this :)

Issue.Refresh;
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9810574
Hi,

You can use ClientDataSet to create XML database files.

HTH,

Andrew
0
 
LVL 3

Author Comment

by:fibdev
ID: 10090575
Hey Andrew,

Could you give me a short example on how to ure ClientDataSet to create and retrieve some data from an XLM database?

I'm trying to clean up old questions and just saw your post on this issue.  I was never informed that you made this post.  Must have been something wrong with the email notification. *shrug*
0
 
LVL 3

Author Comment

by:fibdev
ID: 10090587
Procedure Ooops (Sender : TEEUser);
var Typo : TTypo;
begin
     Typo := StrToTypo('ure');
     Typo.Correct('use');
end;
0
 
LVL 5

Accepted Solution

by:
DeerBear earned 50 total points
ID: 10094156
Hi,

It's simple:

ClientDataset1.LoadFromFile
ClientDataset1.SaveToFile

ClientDatasets are just plain datasets, thus use normal database processing with
Insert, Append, Next, Prior, etc.

HTH,

Andrew
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now