vmnetx-generate: Add mode to validate a domain XML document