X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B0x%2Fpassthru.cpp;h=afc38ec129bc9d8f6a0b3337706efc404fa8847f;hb=e80f2b44f155a6d93d1485657c4cd2008e06f5ad;hp=2db2e3d9adafc10288dd5d9997cd882e311a8f64;hpb=42a6979381f7ee83f5653c12c4b29d4e03b71da1;p=xml-template diff --git a/c++0x/passthru.cpp b/c++0x/passthru.cpp index 2db2e3d..afc38ec 100644 --- a/c++0x/passthru.cpp +++ b/c++0x/passthru.cpp @@ -8,15 +8,7 @@ using namespace std; int main(int argc, char **argv) { - LIBXML_TEST_VERSION - unordered_map master_map; - - xmlDocPtr doc = xmlParseFile("../xml/passthru.xml"); - Substitute(master_map).process(xmlDocGetRootElement(doc), false); - xmlSaveFile(argv[1], doc); - - xmlCleanupParser(); - xmlMemoryDump(); + process_file("../xml/passthru.xml", argv[1], new Substitute(master_map)); return(0); }