X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B0x%2Fstructure.cpp;fp=c%2B%2B0x%2Fstructure.cpp;h=2447febd734854f533e51b123938a262dad37da3;hb=9479feb34459b0d1fcdaa6a6545827f3243cb513;hp=0000000000000000000000000000000000000000;hpb=0f26350831228c8c460a57448e421a1e4c763293;p=xml-template diff --git a/c++0x/structure.cpp b/c++0x/structure.cpp new file mode 100644 index 0000000..2447feb --- /dev/null +++ b/c++0x/structure.cpp @@ -0,0 +1,19 @@ +#include + +#include "xml-template.h" + +using namespace std; + +int main(int argc, char **argv) +{ + Substitute master_directive = { + make_pair("#outer", new Clone { + new Substitute { make_pair("#inner", new Replace("One")) }, + new Substitute { make_pair("#inner", new Replace("Two")) }, + new Substitute { make_pair("#inner", new Replace("Three")) }, + }), + }; + + process_file("../xml/structure.xml", argv[1], &master_directive); + return(0); +}