From: Ian Macdonald Date: 2002-09-12T03:07:33+09:00 Subject: Re: using REXML for XML document creation On Thu 12 Sep 2002 at 01:45:01 +0900, Matt Gushee wrote: > You're probably expecting it to be harder than it is. If you've ever > worked with the DOM, building a document with REXML is similar but > simpler. For example: > > require 'rexml/document' > > doc = REXML::Document.new > elt = doc.add_element("ADDRESSBOOK") > elt = elt.add_element("CONTACTS") > elt = elt.add_element("CONTACT") > elt.add_attribute("FileAs","Macdonald, Ian") > > Hope this helps. Thanks. It definitely did. Ian -- Ian Macdonald | University politics are vicious precisely ian@caliban.org | because the stakes are so small. -- Henry | Kissinger | |