Validating xml with xsd c

Posted by / 15-Oct-2017 07:02

Process Schema Location; Xml Reader XMLvalidator = Xml Reader.[The information in this topic applies to MSXML 5.0 for Microsoft Office Applications and later.]In MSXML 5.0 for Microsoft Office Applications and later, support for inline XSD schemas provides another alternative for validating documents. For more information, see the Validate method documentation.

Validation Event Handler(settings_Validation Event Handler); Xml Document document = new Xml Document(); document.

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

Is there any way to get the line number where the XML fails to be validated? Load Xml(Xml Source); Xml Reader Settings settings = new Xml Reader Settings(); settings.

Read()) is Valid = true; The Validation Event Handler also tells me what the errors are, but doesn't tell me on 'where' or 'on which line' they are located.

validating xml with xsd c-41validating xml with xsd c-37validating xml with xsd c-52

Process Schema Location ; String Reader r = new String Reader(Xml Source); using (Xml Reader validating Reader = Xml Reader.