3 #include "xml-template.h"
7 int main(int argc, char **argv)
9 Substitute master_directive = {
10 make_pair("#outer", new Clone {
11 new Substitute { make_pair("#inner", new Replace("One")) },
12 new Substitute { make_pair("#inner", new Replace("Two")) },
13 new Substitute { make_pair("#inner", new Replace("Three")) },
17 xmlDocPtr doc = process_file("../xml/structure.xml", &master_directive);
18 output_to_fd_and_free(doc, 1);