On Sun, 2003-11-23 at 20:38, DALive Editor wrote:
> Hmm...I think you're a genius.

Not really, I've not done too much work with XML, but from what I've
seen, my approach is okay.  You could even have it in the format:

<pref name="sort" value="1" />

> 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.

>From what I have seen (as I said, not too much work done on XML over
here on my part), that kind of approach can be considered strict XML
(but for a completely strict XML format, I think you might need a DTD or
whatever it's called... a little difficult in this particular case [1]),
but I'd have to do some more research on the subject (already got a
bunch of books to read).

There are XML parsers in PHP itself, so looping through the data
shouldn't be too difficult I'd have thought, and building an XML
preference handler shouldn't be that difficult either.

[1] Because the way PHP works, and the various types of tests available
in PHP, sometimes we take a string as an integer ('1' == 1), or a
double, or things like that.  This makes it difficult to set specific
types for a data type (which I believe XML specs require if you're going
to be using a strict format from what I've glanced over).

I hope this gives you a little insight into some things for your
project.

-- 
Jonathan Angliss
([EMAIL PROTECTED])




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to