my $handler = XML::Handler::YAWriter->new(AsFile => 'foo.xml');