]> git.sesse.net Git - xml-template/blob - c++0x/passthru.cpp
Add a passthru test for C++0x.
[xml-template] / c++0x / passthru.cpp
1 #include <stdio.h>
2 #include <string.h>
3 #include <libxml/parser.h>
4
5 #include "xml-template.h"
6
7 using namespace std;
8
9 int main(int argc, char **argv)
10 {
11         LIBXML_TEST_VERSION
12
13         unordered_map<string, Directive*> master_map;
14
15         xmlDocPtr doc = xmlParseFile("../xml/passthru.xml");
16         Substitute(master_map).process(xmlDocGetRootElement(doc), false);
17         xmlSaveFile(argv[1], doc);
18
19         xmlCleanupParser();
20         xmlMemoryDump();
21         return(0);
22 }