On Jan 19, 2012, at 7:08 PM, Holm Dressler wrote:

> Hi there,
>=20
> I try to check out what's the best way to create a small XML File =
(need
> it for a bank transfer)
>=20
> Anyway: I try the following under the ruby console:
>=20
> require 'builder'
> x =3D Builder::XmlMarkup.new
> x.instruct!
> test =3D x.Hello("World!", "type" =3D> "global")
>=20
> What I receive in test is the following:
>=20
> <inspect/>
> <?xml version=3D\"1.0\" encoding=3D\"UTF-8\"?>
> <Hello type=3D\"global\">World!</Hello>"
>=20
> So how can I get rid of the <inspect/> element. I think this file is A
> BIT against the W3C XML standard.
>=20
> Thanks for any advices,
>=20
> Holm

Try it without irb. Standard IRB automatically calls "inspect" on the =
builder object after each line which adds the "inspect" element ;).=20

Regards,
Florian