]> git.sesse.net Git - xml-template/blobdiff - c++11/attribute-empty.cpp
Rename C++0x port to C++11, since that will be the official name.
[xml-template] / c++11 / attribute-empty.cpp
diff --git a/c++11/attribute-empty.cpp b/c++11/attribute-empty.cpp
new file mode 100644 (file)
index 0000000..96c587d
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+#include "xml-template.h"
+
+using namespace std;
+
+int main(int argc, char **argv)
+{
+       Substitute master_directive = {
+               make_pair("color", new Replace("blue")),
+               make_pair("#things", new Clone { }),
+       };
+
+       xmlDocPtr doc = process_file("../xml/clone.xml", &master_directive);
+       output_to_fd_and_free(doc, 1);
+       return(0);
+}