Link to home
Start Free TrialLog in
Avatar of hibbidiji
hibbidiji

asked on

Best way to save "favorites" in an app

I have an app that is pulling data from an XML file (1100+ records) and I want people to be able to bookmark these items.   These bookmarks will then appear on a listbox or gridview of their own elsewhere in the app.   I have the JEDI library and I know a few of their persistance components might help but I'm not sure which would be best (if any).    

Each item has a unique id number that will never change.  Should I just make a list of the int IDs that people have selected, drop them into a file then read and write them as necessary?   Is there a more elegant solution?
ASKER CERTIFIED SOLUTION
Avatar of pcsentinel
pcsentinel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eddie Shipman
Can you manipulate the XML file, what I mean is, are you allowed to modify it?

If so, place a node in each marked node signifying that it needs to be shown. THis
way, you use the original data for your display as well.
Avatar of hibbidiji
hibbidiji

ASKER

While eddies suggestion would be excellent for a static database, mine would be updated from a central source daily, thereby overwriting any favorite tags in it.
Thankyou folks.