X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=perl-sax%2Fattribute-empty.pl;fp=perl-sax%2Fattribute-empty.pl;h=5c87bd4387d570a7121f9ebce45291330dd54c33;hb=0b5e750eae0d8d58ae293beeaf29368431d5b618;hp=0000000000000000000000000000000000000000;hpb=83eb1374310b3ebc3523f7bc37adee80bde03184;p=xml-template diff --git a/perl-sax/attribute-empty.pl b/perl-sax/attribute-empty.pl new file mode 100644 index 0000000..5c87bd4 --- /dev/null +++ b/perl-sax/attribute-empty.pl @@ -0,0 +1,8 @@ +#! /usr/bin/perl +use XML::TemplateSAX; + +my $doc = XML::TemplateSAX::process_file('../xml/clone.xml', { + 'color' => 'blue', + '#things' => [] +}); +print $doc;