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

A

Alexander Lamb

Hello list,

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

Thanks,
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73
 
J

Jacob Quinn Shenker

WWFtbD8KCk9uIDEwLzE4LzA1LCBBbGV4YW5kZXIgTGFtYiA8QWxleGFuZGVyLkouTGFtYkBzaW0u
aGN1Z2UuY2g+IHdyb3RlOgo+IEhlbGxvIGxpc3QsCj4KPiBJIG5lZWQgdG8gYmUgYWJsZSB0byBl
ZGl0IHNtYWxsIGZpbGVzIHJlcHJlc2VudGluZyBzaW1wbGUgb2JqZWN0cy4KPiBUaGUgdmFsdWVz
IGNhbiBiZSBjb25zaWRlcmVkIGFzIHN0cmluZ3MuCj4gT2J2aW91c2x5LCBJIG1hbmFnZWQgdXNp
bmcgYW4gWE1MIHRvIHJlYWQgaXQgd2l0aCB0aGUgWE1MIHBhcnNlci4gSQo+IHdhcyB3b25kZXJp
bmcgaWYgdGhlcmUgd2FzIGEgbW9yZSBkaXJlY3Qgd2F5IHRvIHVubWFyc2hhbGwgYW4gb2JqZWN0
Cj4gZnJvbSBYTUwgb3Igc29tZSBraW5kIG9mIHByb3BlcnR5IGxpc3QgZmlsZT8gREJNIHNlZW1z
IG9wYXF1ZSAobm90Cj4gZWRpdGFibGUgYnkgaGFuZCkuIENTViBsYWNrcyB0aGUga2V5LXZhbHVl
IHR5cGUgb2YgaW5mb3JtYXRpb24uIFhNTAo+IHVzaW5nIHRoZSBwYXJzZXIgaXMgdG9vIGdlbmVy
YWwuCj4KPiBUaGFua3MsCj4gLS0KPiBBbGV4YW5kZXIgTGFtYgo+IFNlcnZpY2UgZCdJbmZvcm1h
dGlxdWUgTcOpZGljYWxlCj4gSMO0cGl0YXV4IFVuaXZlcnNpdGFpcmVzIGRlIEdlbsOodmUKPiBB
bGV4YW5kZXIuSi5MYW1iQHNpbS5oY3VnZS5jaAo+ICs0MSAyMiAzNzIgODggNjIKPiArNDEgNzkg
NDIwIDc5IDczCj4KPgo+Cj4KPgo+Cj4K
 
A

Alexander Lamb

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

Thanks,

Alex
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top