This task checks xml files are valid (or only well formed). The task uses the SAX2 parser implementation provided by JAXP by default (probably the one that is used by Ant itself), but one can specify any SAX1/2 parser if needed.
This task supports the use of nested xmlcatalog elements and/or nested <dtd> elements which are used to resolve DTDs and entities.