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?
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?
On Mar 7, 2006, at 6:38 AM, [email protected] 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 =<<EOS
test
blah
EOS
doc = REXML::Document.new(xml)
p doc # -> … </>
puts doc # -> the xml…
puts REXML::XPath.match( doc, “//node/xml” ) # -> test
– Daniel
On 6 Mar 2006 21:34:09 -0800, [email protected] 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?
Definitely not the length. I used REXML to load a 500K one-line (no
CRs)
MS Project export, with no problems.
Jay L.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs