add output for dicts and start to xml-dtd