> Jeff Higgins wrote:
>>>>>> Hey guys,
[quoted text clipped - 54 lines]
>> Tasklist the DOM would quickly become unwieldy especially if you have any
>> intention of using any part of the relations in the relational database.
Please don't get all excited about what I have to say. I'm a hobbyist
programmer and as such don't have the depth of knowledge or experience
that some others here have.
> I didn't plan on using a database at all whether for storing user data or
> user/application settings. If the DOM becomes unwieldly, and SAX can't
> marshal new XML documents then what should I use if I want to stick with
> XML? I think I want to stick with XML because I thought it was the modern
> technology to use for not only storing data but configuration settings.
Spend some time and figure out your use cases and data model and then pick
an appropriate technology with which to implement it. Starting out
designing
a GUI and then fitting a data model to that is counter-productive.
> In the past I've used the Java Preferences API and it was great for easily
> retrieving, manipulating data, and then storing changes but the changes
> weren't portable nor editable without my custom GUI which provided both
> edit and import/export features. The Preferences API is just for settings
> and not for data so I figured I'd have to look to something else this
> time.
Don't know much about the Preferences API.
> The XML file I plan to use is going to store not only the properties of a
> task (name, description, frequency, etc.) but also all the dates on which
[quoted text clipped - 7 lines]
> occurrences, and the status for which occurrences of that task have been
> completed.
Good. Data model and use case planning. :)
Spend a bunch of time researching and experimenting with
Java-XML technologies. Including how (!) to use xml as a database.
This could become a career-long endeavor.
> A user may modify the frequency of a task, complete a single or multiple
> occurrences of a task, or create/delete a task and I was hoping an API was
> available for me to easily handle data elements, that were sourced from an
> XML file, to accomplish those user actions.
Good. Building use cases. :)
Java-XML binding frameworks.
> That's what I have in my head so far for designing this. Note that this is
> just a for-fun project I thought I'd try for my own benefit so at this
> point there is no need for it to be enterprise-ready (i.e. multi-user,
> etc.).
Don't know about enterprise ready.
Multi-user is probably not synonymous with enterprise-ready.
> At this point the calendar displays better than I imagined and I'm trying
> to wrestle around how to compute, store and display multiple occurrences
> of a single task, hence this thread.
Good deal. I saw your earlier thread and it sparked some interest in
a Calendar wiget.
See remark above.
>> You may also consider your Calendar over time, and over multiple users,
>> and over feature creep and over data types. Querying the DOM for all
[quoted text clipped - 6 lines]
> than a handful of results for a user like myself or a family member who
> might benefit from my program.
I didn't explicate very well there. I guess what I was getting at was
that database technology is good for implementating databases and
XML technology is good for implementing Extensible Markup Language
functionality.
>> Having that said; If you view tour Calendar as a document the the DOM is
>> certainly the way to go.
>>
>> JH