Quantcast
Channel: How to validate an Xml using XSD - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer by gdoron for How to validate an Xml using XSD

It looks like you forgot the ValidationFlags:readSettings.ValidationFlags |= XmlSchemaValidationFlags.ProcessInlineSchema;readSettings.ValidationFlags |=...

View Article

How 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>