[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KDE config files and XML..
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2001-08-31 8:40:52
[Download RAW message or body]
On Friday, 31. August 2001 05:45 (GMT +0200), John Sutherland wrote:
> 1. Is there some KDE classes to handle reading/writing XML files, or can I
> assume that there's particular XML libraries availble (I think libxml was
> installed when I installed my Mandrake rpms for 2.2)..
You could use QDom classes. They make handling XML quite easy IMHO.
> 2. How/where should I store my XML files?
You applications data directory.
you can use the locate function from kstddirs.h to get a path to that
diretory independend of the users settings.
like
QString filename = locate("app", "image1.xml");
which would on my system return .kde2/share/apps/reKord/image1.xml
Bye,
Kevin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic