I'm using c# and trying to replicate some functionality that I wrote previously in VB6.
It should be simple: I have XML files which contain this statement: xsi:noNamespaceSchemaLocation="Schemas\mySchema.xsd"
I would like to be able to use XMLDocument to both parse and validate the XML file against the schema file referenced above.
I should not have to provide a path and file name separately since they are already contained within the XML file.
I do not want to use the XMLReader if possible.
My previous VB6 code could do this and would generate appropriate errors if the schema file did not exist/could not be found, or if the contents of the XML file failed validation.
How can I accomplish this in C#?