From: Patrick Gundlach Date: 2005-10-30T03:17:04+09:00 Subject: Re: rexml: generating tree from source Hello daz, > This may be applicable: [rexml, utf-8] i don't think so, since my input _is_ utf-8 compliant (and ascii, iso-latin-1 etc.). The only problematic chars in my code are '<' and '>'. I use the code exactly as shown. Patrick -------------------------------------------------- #!/usr/bin/env ruby require 'rexml/document' include REXML str=<text with EOS # d=Document.new(str) # barks because < and > s=Source.new(str) # I thought that this would give me some output puts Element.new(s) #-> --------------------------------------------------