namespace2: namespace2.o $(LIBS)
$(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
+structure: structure.o $(LIBS)
+ $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
--- /dev/null
+#include <stdio.h>
+
+#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);
+}