From: Tobias Reif Date: 2002-04-10T18:16:12+09:00 Subject: Re: ruby + Creating and extending XML documents Oliver Beddows wrote: > - Is it not better to USE the class rather than inherit from it? I don't know. But if there's a document which is in a subcategory of a generic XML document, subclassing Document seems to reflect this well. > - Would it be quicker to make the 'masterDocument' an actual xml file. Then > load it using REXML as a DOM Tree, adding, changing, removing nodes from > there on? I meant both: xml_string = open(infile_name,'r') do |file| file.read end md = MasterDocument.new xml_string > - Also, will loading a library such as REXML cause any significant overhead? Try it; it mainly depends on what you do with it. Anyways: TIMTOWDI Tobi