in reply to <opt>-less XML::Simple

You just need to set the KeepRoot option:
print xml_out($req, KeepRoot => 1);
produces
<Foo Bar="1"> <Baz>2</Baz> </Foo>

Replies are listed 'Best First'.
Re^2: <opt>-less XML::Simple
by dsheroh (Monsignor) on Dec 18, 2007 at 04:00 UTC
    Ah, excellent - thanks! I missed that option (obviously).