]> git.sesse.net Git - xml-template/blobdiff - c++0x/simple.cpp
Add c++0x to test suite.
[xml-template] / c++0x / simple.cpp
index 05c7ea64f6ad4a49338412173c8814c2d65ec290..cfc504181d25584d906fb61b922918ca15152bc1 100644 (file)
@@ -14,9 +14,9 @@ int main(int argc, char **argv)
        master_map.insert(make_pair("title", new Replace("A very basic example")));
        master_map.insert(make_pair("#hello", new Replace("Hello world!")));
 
-       xmlDocPtr doc = xmlParseFile(argv[1]);
+       xmlDocPtr doc = xmlParseFile("../xml/simple.xml");
        Substitute(master_map).process(xmlDocGetRootElement(doc), false);
-       xmlSaveFile("out.xml", doc);
+       xmlSaveFile(argv[1], doc);
 
        xmlCleanupParser();
        xmlMemoryDump();