Subject: Re: XML config file
To: Jonathan A. Kollasch <jakllsch@kollasch.net>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 07/24/2006 10:18:15
On Jul 23, 2006, at 7:54 PM, Jonathan A. Kollasch wrote:
> hesiod.conf:
>
> lhs=.ns
> rhs=.kollasch.net
> class=IN,HS
>
> becomes
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <hesiod_conf>
> <lhs>.ns</lhs>
> <rhs>.kollasch.net</rhs>
> <class_list>
> <class_item>IN</class_item>
> <class_item>HS</class_item>
> </class_list>
> </hesiod_conf>
Actually, using proplib, it would look like:
<plist>
<dict>
<key>lhs</key>
<string>.ns</string>
<key>rhs</key>
<string>.kollasch.net</string>
<key>class</key>
<array>
<string>IN</string>
<string>HS</string>
</array>
</dict>
</plist>
-- thorpej