X-Git-Url: https://git.sesse.net/?p=xml-template;a=blobdiff_plain;f=c%2B%2B0x%2Fsimple.cpp;h=0c895426383497494e362f9f8ddadd90d4827989;hp=5ac223d09f72eda03769dd1d1bef78b964cf8de3;hb=ad45bc892752571fec46b21564e4683c074f1d46;hpb=d9fe760eebc1e40789f2fd769dcba74e3b0dbcbb diff --git a/c++0x/simple.cpp b/c++0x/simple.cpp index 5ac223d..0c89542 100644 --- a/c++0x/simple.cpp +++ b/c++0x/simple.cpp @@ -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); }