]> git.sesse.net Git - xml-template/blobdiff - c++0x/simple.cpp
Tweak C++0x API a bit, to prepare for include. Also, output to stdout instead of...
[xml-template] / c++0x / simple.cpp
index 5ac223d09f72eda03769dd1d1bef78b964cf8de3..0c895426383497494e362f9f8ddadd90d4827989 100644 (file)
@@ -11,6 +11,7 @@ int main(int argc, char **argv)
                make_pair("#hello", new Replace("Hello world!")),
        };
 
-       process_file("../xml/simple.xml", argv[1], &master_directive);
+       xmlDocPtr doc = process_file("../xml/simple.xml", &master_directive);
+       output_to_fd_and_free(doc, 1);
        return(0);
 }