From: ara.t.howard@... Date: 2006-03-28T00:05:50+09:00 Subject: Re: ara's double_x : generate xml? On Mon, 27 Mar 2006, itsme213 wrote: > Does this library support generating of xml (not xhtml)? what's the top > level call? I tried > > xml_ { ...} and it dies with > irb(main):021:0> doc = xml_ { p_ "a" } > NoMethodError: undefined method `create' for nil:NilClass > from c:/ruby/lib/ruby/gems/1.8/gems/xx-0.1.0/lib/xx.rb:197:in > `method_missing' > from (eval):10:in `xml_' > from c:/ruby/lib/ruby/gems/1.8/gems/xx-0.1.0/lib/xx.rb:208:in `send' > from c:/ruby/lib/ruby/gems/1.8/gems/xx-0.1.0/lib/xx.rb:208:in > `method_missing' > from (irb):21 > from :0 > irb(main):022:0> > > Thanks. you just need to mixin the method you want, in this case the xml methods: harp:~ > cat a.rb require 'xx' include XX::XML puts xml_{ p_{ "a" } } harp:~ > ruby a.rb

a

regards. -a -- share your knowledge. it's a way to achieve immortality. - h.h. the 14th dali lama