use xml parser to validate dot output for consistent testing result on different platforms...