]> git.sesse.net Git - xml-template/blobdiff - c++0x/namespace.cpp
Tweak C++0x API a bit, to prepare for include. Also, output to stdout instead of...
[xml-template] / c++0x / namespace.cpp
index 72985767303f19472dae8701c693584768163c52..3399957fd41255c55f6604dc0c4031f2741c7923 100644 (file)
@@ -14,6 +14,7 @@ int main(int argc, char **argv)
                make_pair("#moretest", new Replace("bar")),
        };
 
-       process_file("../xml/namespace.xml", argv[1], &master_directive);
+       xmlDocPtr doc = process_file("../xml/namespace.xml", &master_directive);
+       output_to_fd_and_free(doc, 1);
        return(0);
 }