Recommended way to create an object from XML (or other) file?

Hello list,

I need to be able to edit small files representing simple objects. The values can be considered as strings.
Obviously, I managed using an XML to read it with the XML parser. I was wondering if there was a more direct way to unmarshall an object from XML or some kind of property list file? DBM seems opaque (not editable by hand). CSV lacks the key-value type of information. XML using the parser is too general.

Thanks,

···

--
Alexander Lamb
Service d'Informatique Médicale
Hôpitaux Universitaires de Genève
Alexander.J.Lamb@sim.hcuge.ch
+41 22 372 88 62
+41 79 420 79 73

Yaml?

···

On 10/18/05, Alexander Lamb <Alexander.J.Lamb@sim.hcuge.ch> wrote:

Hello list,

I need to be able to edit small files representing simple objects.
The values can be considered as strings.
Obviously, I managed using an XML to read it with the XML parser. I
was wondering if there was a more direct way to unmarshall an object
from XML or some kind of property list file? DBM seems opaque (not
editable by hand). CSV lacks the key-value type of information. XML
using the parser is too general.

Thanks,
--
Alexander Lamb
Service d'Informatique Médicale
Hôpitaux Universitaires de Genève
Alexander.J.Lamb@sim.hcuge.ch
+41 22 372 88 62
+41 79 420 79 73

Oups, of course Yaml! (I knew I had to read past page 400 in the excellent "programming Ruby" book).
You see, Ruby is SO EASY getting started with that you forget there are things to read first:-) (I come from the Objective-C / NeXT world).

Thanks,

Alex

···

--
Alexander Lamb
Service d'Informatique Médicale
Hôpitaux Universitaires de Genève
Alexander.J.Lamb@sim.hcuge.ch
+41 22 372 88 62
+41 79 420 79 73

On Oct 19, 2005, at 9:00 AM, Jacob Quinn Shenker wrote:

Yaml?

On 10/18/05, Alexander Lamb <Alexander.J.Lamb@sim.hcuge.ch> wrote:

Hello list,

I need to be able to edit small files representing simple objects.
The values can be considered as strings.
Obviously, I managed using an XML to read it with the XML parser. I
was wondering if there was a more direct way to unmarshall an object
from XML or some kind of property list file? DBM seems opaque (not
editable by hand). CSV lacks the key-value type of information. XML
using the parser is too general.

Thanks,
--
Alexander Lamb
Service d'Informatique Médicale
Hôpitaux Universitaires de Genève
Alexander.J.Lamb@sim.hcuge.ch
+41 22 372 88 62
+41 79 420 79 73