thank you sir. love the library. is the '_' convention something that is (or should be) configurable? i'm also looking forward to experimenting with traits. it sounds like something that could be used for recording meta-data in lots of places, including things like nitro/og. <ara.t.howard / noaa.gov> wrote in message news:Pine.LNX.4.62.0603270803500.32347 / harp.ngdc.noaa.gov... > 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 > <?xml version='1.0'?><p>a</p> > > > regards. > > -a > -- > share your knowledge. it's a way to achieve immortality. > - h.h. the 14th dali lama > >