Solved

XML Database Application

Posted on 2003-11-02
8
177 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
 
LVL 3

Author Comment

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

Issue.Refresh;
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 250
Delphi OLE Error 8 84
Copy file in dll not working but working on exe ! 18 83
Convert Jpg /PNG To GIF 5 102
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

16 Experts available now in Live!

Get 1:1 Help Now