Hmm...I think you're a genius.

My mind was so set on having strict XML tags i forgot abotu trying such an approach...but for that approach I'd have to loop through the records to find teh correct key and get it's value...a little more processing power...but it gets the job done.

Thank you.


Jonathan Angliss wrote:
On Sun, 2003-11-23 at 19:30, DALive Editor wrote:
  
Yes thank you,

I've tried looking through that file. But I've quickly noticed that
not all the possible prefs. are in the file at one time generally. And
I need to know all the possible values so that I can setup my XML.
    

The prefs file is loaded on nearly every change to the preferences
options, and saved into cache.  It's impossible to know ALL the
preferences options because of things like plugins and the likes.  you
shouldn't need to know ALL the values because you should be able to do
something like this:

  <prefop>
    <name> sort </name>
    <value> 1 </value>
  </prefop>

That's just an example, but it shows you don't need to know all of them,
you can just set the name to whatever the preference name gets set to,
depending on the option.  Then you just build a new preference handler
to add/remove/edit the XML sections.

  

Reply via email to