From: Patrick Gundlach Date: 2005-10-30T00:17:05+09:00 Subject: rexml: generating tree from source Hello out there, I try to parse some xml-text with rexml: -------------------------------------------------- #!/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) #-> -------------------------------------------------- What I'd like to have is a representation of element: a element: b text: "text with <illegal characters> " Any possibility? Thanks, Patrick