Answer by Jens Granlund for How to validate an Xml using XSD
Here is a simple method that uses linq to xml.The method ValidateXmlFile is a sample of how to use it.private static void ValidateXmlFile(){ using (var xmlFile = File.OpenRead("networkshares.xml"))...
View ArticleAnswer by gdoron for How to validate an Xml using XSD
It looks like you forgot the ValidationFlags:readSettings.ValidationFlags |= XmlSchemaValidationFlags.ProcessInlineSchema;readSettings.ValidationFlags |=...
View ArticleHow to validate an Xml using XSD
This code is not validating the Xml properly Could you please find the mistake.... Even if I am executing with Invalid xml it is not raising any errorusing System.Xml;namespace XmlTryProject{ internal...
View Article
More Pages to Explore .....