[lug] Advice on writing a config file (probably XML)

Ed Hill ed at eh3.com
Sun Dec 14 06:55:25 MST 2003


On Sat, 2003-12-13 at 20:49, Jon Bowman wrote:
> Hi I'm looking for some advice. I'm writing a Gnome application
> to 
> handle wireless profiles. Anyway I need to keep track of the
> profiles,
> data in the profile for example would include
> 
> ESSID, WEP KEY, Network Device amongst some others
> 
> Anyway I assume XML is probably the cleanest way to write a
> config
> file. Never having done this before or used XML does anyone have
> any
> recommendation / pointers to get me started. The application is
> written
> in C so are there any libraries / functions I can make use of ?
> 
> Any help , advise and pointers or just personal experience would
> be
> appreciated.


Hi Jon,

I'm more of a C++ type, so I've used both Xerces-C++:

  http://xml.apache.org/xerces-c/index.html

and libxml++

  http://libxmlplusplus.sourceforge.net/

They're both about equally easy to get started using.  From the
examples, you should be able to add some simple XML parsing to your code
in a day or two.

If you wish to stick with C, then theres libxml2 which is part of the
Gnome project:

  http://www.xmlsoft.org/

and is used pretty extensively within Gnome.

Good luck with your XML (en|de)coding!

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
            Cambridge, MA 02139-4307
email:   eh3 at mit.edu,  ed at eh3.com
URL:     http://web.mit.edu/eh3/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20031214/c70a4bd0/attachment.pgp>


More information about the LUG mailing list