X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B0x%2Fattribute-empty.cpp;fp=c%2B%2B0x%2Fattribute-empty.cpp;h=b79836bbc4ed52623f1ea56cee320368926a0a30;hb=d9fe760eebc1e40789f2fd769dcba74e3b0dbcbb;hp=0000000000000000000000000000000000000000;hpb=62c782c572e33a1f03f57a71f63309165da47e73;p=xml-template diff --git a/c++0x/attribute-empty.cpp b/c++0x/attribute-empty.cpp new file mode 100644 index 0000000..b79836b --- /dev/null +++ b/c++0x/attribute-empty.cpp @@ -0,0 +1,16 @@ +#include + +#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 { }), + }; + + process_file("../xml/clone.xml", argv[1], &master_directive); + return(0); +}