REXML article on XML.com

J

James Britt

G

Gyoung-Yoon Noh

There a nice article by Koen Vervloesem about REXML up on the XML.com sit= e:
=3DOTC-TY3388567169

James Britt


--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools

I'm afraid it's not proper reporting here.

$ ruby code1.rb
/usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined
method `add_element' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize'
from code1.rb:4:in `new'
from code1.rb:4

$ ruby code2.rb
/usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined
method `add_element' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize'
from code2.rb:21:in `new'
from code2.rb:21


However, code3.rb worked well.
 
G

Gyoung-Yoon Noh

I'm afraid it's not proper reporting here.

$ ruby code1.rb
/usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined
method `add_element' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize'
from code1.rb:4:in `new'
from code1.rb:4

$ ruby code2.rb
/usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined
method `add_element' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize'
from code2.rb:21:in `new'
from code2.rb:21


However, code3.rb worked well.

REXML could not parse DTD.
I could not even run examples including DTD from REXML tutorial page.[1]

Any thought?

[1]: http://www.germane-software.com/software/rexml/docs/tutorial.html
 
D

daz

James said:
There a nice article by Koen Vervloesem about REXML up on the XML.com site:

http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html?CMP=OTC-TY3388567169


The heredoc input string and two example files
(bibliography.xml and bibliography2.xml) contain:

<?xml version="1.0" encoding="ISO-8859-15"?>

causing REXML to barf. Changing to ISO-8859-1
(or removing) fixes. ISO-8859-15 is unsupported.

I should email Koen but maybe you're in contact, James :-?


daz
 
J

James Britt

daz wrote:
...
The heredoc input string and two example files
(bibliography.xml and bibliography2.xml) contain:

<?xml version="1.0" encoding="ISO-8859-15"?>

causing REXML to barf. Changing to ISO-8859-1
(or removing) fixes. ISO-8859-15 is unsupported.

I should email Koen but maybe you're in contact, James :-?

No. I just happened to hear about the article and thought it worth a
mention here. I skimmed it, but did not read through it, and have no
contact with the author.

But I posted a quick comment on the site.

James

--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
D

daz

James said:
But I posted a quick comment on the site.

Splendid idea! One of those interactive doo-dahs.
Wish I'd written in English, now.
Barf must be a word I picked up here :)

Thanks,

daz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top