nested tags with contents in RXML

Hi,

I'm trying to get

   <a> foo      <b> bar </b>    </a>

with RXML.

   xml.a('foo') {      xml.b('bar')    }

complains about contents and blocks not being usable together. I think my XML is valid though. Is there a way to do this, or to trick RXML ?

Jean-Christophe Michel

I think something like this should work:

xml.a {   xml.text! 'foo'   xml.b('bar') }

The text! method sets the arg as text content of the element...

b

Jean-Christophe Michel wrote: