Help for this page
use XML::Generator; ... 'conformance' => 'strict'); print $x->foo($x->bar({baz=>3}, $x->bam()), $x->bar(['qux'],"Hey there,\n", "world"));
<foo><bar baz="3"><bam /></bar><qux:bar>Hey there, world</qux:bar></foo>