Re: XML

Tim Walker <[email protected]> Mon, 7 Apr 2003 20:10:55 +1000
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
Hmmn, yeah I've been playing with qconfig and the like, it's a bit over the 
top for what I'm trying to do, but usable.

Rik Hemsley suggested QDataStream which also has possibility...

I'm very much the perl/php + sql programmer and I get used to having a simple 
way of storing, accessing and searching data in an simply way.

select * from entries where date='20030505';

or whatever is rather easy to implement :)

I guess the biggest issue is that I was trying to avoid having to create large 
memory structures. For example if someone has 1000 entries in this program, 
than that 1000 instances of a class I have to implement,sort,save to and read 
from files blah blah. Which is going to chew ram. So alternatively I can 
leave it on disk and access each bit as I need, but then we're talking disk 
accesses for simple things like grabbing a list of every entry. 

If I'm willing to load a linked list or whatever into memory at startup well 
then QDataStream will probably be the most ecnomical way to go...

Tim




On Mon, 7 Apr 2003 07:46 pm, you wrote:
> Hi Tim,
>
> > I'm starting to suspect that xml support in the form of QDomDocument
> > isn't
> >
> > compiled into qtopia-free.
>
> You are right, the QDom classes are not part of QtEmbedded.
>
> > What are people using the parse/write XML documents on the Z? OR is there
> > any
> > alternative classes for dumping data to file easily rather than have to
> > write
> > my own data file and parsers etc.
>
> for simple configuration data, use the Config class, that will read/write
> the
> ~/Settings/appname.conf file. It's no XML, however. If you need XML, you
> have to port
> some xml class yourself, I am afraid.
>
> Eggert



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/