There is no option in Mendix to validate a xml file created with a domain-to-xml mapping, although this would be a nice feature. If you really want to validate your xml with a xsd, you need to use a java-action directly after the domain-to-xml.
Or you could check your object with a microflow before creating the xml.