From: Daniel Harple Date: 2006-03-07T15:02:42+09:00 Subject: Re: Can REXML handle long XML On Mar 7, 2006, at 6:38 AM, listrecv@gmail.com wrote: > I have a long chunk of XML - about 32k. REXML::Document.new(x) gives > me an "". Yet I double checked the xml in a validator (by > File.write x into a file, and then loading it), and it validates fine. > > Any ideas? That's just what a REXML::Document object returns when you call #inspect. require 'rexml/document' xml =< test blah EOS doc = REXML::Document.new(xml) p doc # -> ... puts doc # -> the xml... puts REXML::XPath.match( doc, "//node/xml" ) # -> test -- Daniel