Hello,
I'm trying to use c# to associate a xml document with a xsd schema. I'm using the c# code which is lifted from help but when I use the debugger
nothing happens.
Path = XMLPath + "\\" + XMLFile;
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;
settings.Schemas.Add("urn:
engine-sch
ema", "c:\\Engine\\ruleset.xsd")
;
settings.IgnoreComments = true;
settings.ValidationEventHa
ndler += new ValidationEventHandler(Rul
eFileValid
ationHandl
er);
XmlReader xvr = XmlReader.Create(Path, settings);
Any help would be much obliged.
Bob.
Start Free Trial