XML from Builder without the to_s element

Hi All,

I’m trying to return XML from a Rails view of an object I built up
using Builder::XmlMarkup and I find an annoying side effect is that I
get an extra <to_xml/> or <to_s/> element back which makes REXML
hiccup thinking I’m adding a recond root element when I try to parse
the return.

How can I return the XML without this last element?

Thanks,

Vince

Ahh, I found it - just needed to use the target!() method on my builder
object…sorry for the noise :slight_smile:

Vince

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs