X-Git-Url: https://git.sesse.net/?p=xml-template;a=blobdiff_plain;f=c%2B%2B0x%2Fpassthru.cpp;h=28cc2f4873311705e0e2a7192eb20514bb5736a2;hp=f4fc63692a83a7d873b6552ac0ee390f65cb830b;hb=ad45bc892752571fec46b21564e4683c074f1d46;hpb=d9fe760eebc1e40789f2fd769dcba74e3b0dbcbb diff --git a/c++0x/passthru.cpp b/c++0x/passthru.cpp index f4fc636..28cc2f4 100644 --- a/c++0x/passthru.cpp +++ b/c++0x/passthru.cpp @@ -9,6 +9,7 @@ using namespace std; int main(int argc, char **argv) { Substitute master_directive = {}; - process_file("../xml/passthru.xml", argv[1], &master_directive); + xmlDocPtr doc = process_file("../xml/passthru.xml", &master_directive); + output_to_fd_and_free(doc, 1); return(0); }