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();
TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2 structure"
fi
if [ -z "$LANGUAGES" ]; then
- LANGUAGES="perl perl-sax php4 php5 python ruby"
+ LANGUAGES="perl perl-sax php4 php5 python ruby c++0x"
fi
for L in $LANGUAGES; do
if [ "$L" = "ruby" ]; then
ruby -I../ruby ../ruby/$T.rb > $TEMPFILE
fi
+ if [ "$L" = "c++0x" ]; then
+ ( cd ../c++0x && make $T ) && ../c++0x/$T $TEMPFILE
+ fi
perl ./xml-diff.pl $TEMPFILE reference/$T.xml
if [ $? = 0 ]; then