Validate XML and/or DTD