EDN Admin
Well-known member
Hello,
Is it possible to gt a return type from the myHandle()?
<pre>XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas.Add(null, "mySchema.xsd");
settings.ValidationFlags = settings.ValidationFlags | XmlSchemaValidationFlags.ReportValidationWarnings;
settings.ValidationType = ValidationType.Schema;
settings.ValidationEventHandler += new ValidationEventHandler(myHandlers);
using (XmlReader doc = XmlReader.Create("myXML.xml", settings))
{
while (doc.Read()) { }
}
.....
static void myHandlers(object sender, ValidationEventArgs e)
{
}[/code]
ehsan
View the full article
Is it possible to gt a return type from the myHandle()?
<pre>XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas.Add(null, "mySchema.xsd");
settings.ValidationFlags = settings.ValidationFlags | XmlSchemaValidationFlags.ReportValidationWarnings;
settings.ValidationType = ValidationType.Schema;
settings.ValidationEventHandler += new ValidationEventHandler(myHandlers);
using (XmlReader doc = XmlReader.Create("myXML.xml", settings))
{
while (doc.Read()) { }
}
.....
static void myHandlers(object sender, ValidationEventArgs e)
{
}[/code]
ehsan
View the full article