]> git.sesse.net Git - xml-template/blobdiff - c++0x/attribute-empty.cpp
Tweak C++0x API a bit, to prepare for include. Also, output to stdout instead of...
[xml-template] / c++0x / attribute-empty.cpp
index b79836bbc4ed52623f1ea56cee320368926a0a30..96c587db686e14a4da212140d9b0b702cbbfd7f5 100644 (file)
@@ -11,6 +11,7 @@ int main(int argc, char **argv)
                make_pair("#things", new Clone { }),
        };
 
-       process_file("../xml/clone.xml", argv[1], &master_directive);
+       xmlDocPtr doc = process_file("../xml/clone.xml", &master_directive);
+       output_to_fd_and_free(doc, 1);
        return(0);
 }