Are there tool or libraries that we can use for automated testing to check that the generated XML matches the schema?
Most document types are subject to constraints that cannot be expressed with XML Schema. Don't hesitate to send suggestions and comments to Christoph Schneegans ([email protected]).
This validator tries to check these as well, which makes its results much more applicable to real-world applications: namespaces in .
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.
Certain error messages contain a reference to the schema constraints listed in Appendix C of the XML Schema Part 1: Structures document.