Error in validating the xml file against the latest schema

*The maximum size limit for file upload is 2 megabytes. Visual Studio, when I open the file, validates it against the schema and lists errors perfectly. But, through this approach, we cannot get information about all validation errors in the XML file in a single run.

error in validating the xml file against the latest schema-45error in validating the xml file against the latest schema-86

Validates the XML string/file against the specified XSD string/file.

I’m currently working on an XML File Explorer application, which I intend on highlighting XML files which do not conform to an XSD schema, as part of this I have created a class for containing the details of performing XSD validation against an XML document, which I thought I would share with you (although the XML File Explorer will be open source).

The code is pretty simple but I’m a fan of hiding away any complexities so that I don’t have to think about them when I’m working on a project.

The validator will report fatal errors, non-fatal errors and warnings.

If the XSD is publicly available using HTTP and referenced through a "schema Location" or "no Namespace Schema Location", then the validator will pick it up and it doesn't need to be specified/uploaded.

Leave a Reply