When using it for validation Xml against Xsd everythink works fine and how I expect.But when I try validate a Xsd file against another Xsd, it throws no validation exception.
I've created a small Java project on github to validate from the command line using the default JRE parser, which is normally Xerces. There is also a C version of Xerces available if you'd rather use that.
Finally, you'll find different programs will, unfortunately, give different results.
Validates the XML string/file against the specified XSD string/file.
The reason is that XML software should be small, fast, and compatible.
HTML browsers are allowed to display HTML documents with errors (like missing end tags). A "well formed" XML document is not the same as a "valid" XML document. In addition, it must conform to a document type definition.