Hi all
I am using XmlValidatingReader to read XML one line at a time and also
validate it as I go along.
I cannot rely on the XML to have the required
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="DataImport.xsd"
attributes in the root node, and I don't want to risk someone modifying my
XSD either. So what I want to do is to tell XmlValidatingReader to
validated against DataImport.XSD that I have added to my project with Build
Action = Content.
I've looked at a few examples, none of them do exactly what I need and to be
honest went over my head.
Does anyone have an example showing how to use an embedded XSD file with an
XmlValidatingReader please?
Thanks
Pete