Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Validating XML against referenced XSD in C#

I have created a XML file using XmlWriter in C#. Now, I want to validate my XML file according a XSD schema.

I have an XML file and I have a XSD file with a specified schema location such as this:

 "someurl..\localSchemaPath.xsd"

I don't understand how I have to combine my XSD-file and the XML-file I have already created.

I have tried several approaches that I found online but I am new at XML methods.

I hope you can give me any direction because I am stuck.

Comments