From: Pau Garcia i Quiles Date: 2006-10-29T08:19:10+09:00 Subject: REXML question --nextPart44723385.ftLTCzSWWr Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I am using REXML to create XML documents but I am facing a problem: I canno= t=20 add XML childs. I want to create a parent element with REXML, then add a bunch of XML as a= =20 children (I already have that XML). I would like to do something like this: xml =3D REXML::Element.new('parent') xml.add_xml_element('value1value2') Then xml.to_s would output:=20 value1value2 I have tried with REXML::Element#add_element, but it adds an extra '<' befo= re=20 the child: <value1value2<= /parent> Am I trying something impossible? Thank you. =2D-=20 Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) --nextPart44723385.ftLTCzSWWr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBFQ+Vc/DzYv9iGJzsRAmo+AKC8JhIm0/W/H8eoCyxNlBs1cX4PjgCggSE0 KJaQCNaK/6KOUH1E2i8pVX0= =1c/1 -----END PGP SIGNATURE----- --nextPart44723385.ftLTCzSWWr--