XML option parser for mcs

Guido Draheim guidod-2002- at gmx.de
Sun Dec 29 12:26:19 CET 2002


Olivier Fourdan wrote:
> Hi all,
> 
> FYI, I'm currently working on a small XML parser for mcs options based
> on GMarkup (ie not using libxml)
> 
> The file format will be :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE mcs-option SYSTEM "mcs-option.dtd">
> 
> <mcs-option>
> <option name="option1" type="int" value="3"/>
> <option name="option2" type="string" value="An option"/>
> <option name="option3" type="color" value="255,255,255,0"/>
> </mcs-option>
> 

This format makes it hard to be checked with an external
parser being able to validate an xml file with a DTD. At
minimum, it should be name="option" along with their
int="3" and string="an option" and color="255,255,0". The
type indicator may be passed along for convenience to your
reader function to know as to which attribute to look for.

-- cheers, guido                             http://xmlg.sf.net




More information about the Xfce4-dev mailing list