newXMLDumper() calls mkdir() if necessary