I am using REXML to create XML documents but I am facing a problem: I
add XML childs.
I want to create a parent element with REXML, then add a bunch of XML as
children (I already have that XML). I would like to do something like
xml = REXML::Element.new(‘parent’)
Then xml.to_s would output:
I have tried with REXML::Element#add_element, but it adds an extra ‘<’
Am I trying something impossible?