Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » XML exercise
Re: XML exercise [message #36090 is a reply to message #36080] Thu, 26 April 2012 15:49 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Quote:


The AddressBook example in bazar show the possibility to store datas but it creates a new xml everytime, so the problem is a bit different.



The example has everything you need to do what you want. You can skip the FileSel dialog part and insert a fixed file name so that it doesn't "create a new xml everytime" (if I got it right).

If I do it, XML is good for storage and transportation of information beyond your application. Within your application, you should be better off to store it in a, eg sorted Vector, for better performance.

so:
1. program start, read(parse) XML database, and store car info in a more accessible way;

2. do add/edit/delete as you do in any other data manipulation application. XML is not relevant here

3. when close or explicit save requested, check if data is changed, if yes, save to XML.

you can already do 1 and 3 with reference to AddressXML, so just figure out how you should do 2.

HTH
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fills the DropList from VectorMap
Next Topic: Search for constant and show it....
Goto Forum:
  


Current Time: Sat May 11 12:53:23 CEST 2024

Total time taken to generate the page: 0.02709 seconds