On Sat, Feb 22, 2003 at 02:04:36AM +0900, Daniel Carrera wrote:
> You know, this could be used for a lot more than just config files.
> It could probably be extended to store any object as long as it's data 
> contains strings only.
> 
> For instance, in my tutorial I am working on an addressbook application.  
> We create an AddressBook class which, internally, is an an array whose 
> entries are Person classes.  The Person class is a hash with entries such 
> as "name" and "phone".
> 
> It would be great if I could save and load this entire class with 
> something as simple as:
> 
> xml_save(addressbook, "file.xml")
> addressbook = xml_open("file.xml")

If you want to serialize objects, YAML4R makes it quick and easy...
http://yaml4r.sourceforge.net/

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

MS-DOS, you can't live with it, you can live without it.
	-- from Lars Wirzenius' .sig