I've created a C# dll (for com interop) that is called from a VB based application (sorry guys, yep I'm a VB programmer!)
From VB, the following call is made:
sErrors = myobj.Validate(sXMLFile, arrXSD)
- myobj is latebound object for the class
- sXMLFile is a string that contains the location of our xml file that needs to be validated.
- arrXSD contains an array of XSD's that the XML file is validated against.
I need the C# 'Validate' function to do the following:
1) Add each of the schema's in the array into the XmlValidatingReader object
2) Validate the XML file based on the schema's, adding any errors into a new XML file (called whatever you like)
3) The Validate function should return the path to the new XML file that contains the error.
Some guidance on how to achieve the three points above would be awesome!
------------------------
Hit any User to continue
From VB, the following call is made:
sErrors = myobj.Validate(sXMLFile, arrXSD)
- myobj is latebound object for the class
- sXMLFile is a string that contains the location of our xml file that needs to be validated.
- arrXSD contains an array of XSD's that the XML file is validated against.
I need the C# 'Validate' function to do the following:
1) Add each of the schema's in the array into the XmlValidatingReader object
2) Validate the XML file based on the schema's, adding any errors into a new XML file (called whatever you like)
3) The Validate function should return the path to the new XML file that contains the error.
Some guidance on how to achieve the three points above would be awesome!
------------------------
Hit any User to continue