XMLValidator An example validator for XML files supports validation against internal and external XSD or DTD files. Also supports element counting in XML document. To get all options run with -? attribute.