]> git.sesse.net Git - xml-template/blobdiff - perl-sax/attribute-empty.pl
Add perl-sax/attribute-empty test, works directly. All tests pass!
[xml-template] / perl-sax / attribute-empty.pl
diff --git a/perl-sax/attribute-empty.pl b/perl-sax/attribute-empty.pl
new file mode 100644 (file)
index 0000000..5c87bd4
--- /dev/null
@@ -0,0 +1,8 @@
+#! /usr/bin/perl
+use XML::TemplateSAX;
+
+my $doc = XML::TemplateSAX::process_file('../xml/clone.xml', {
+       'color' => 'blue',
+       '#things' => []
+});
+print $doc;