Xmlschemaset not validating
You need one schema and two XML files to validate against the schema.
This program validates the XML document against the schema successfully.
The element 'Child1' has invalid child element 'Grand Child3'.
Internal Validation Callback(Object sender, Validation Event Args e) at System.
Execute(Xml Schema Set schema Set, Schema Info schema Compiled Info) at System.
NET Core Shared Framework Host Version : 2.0.0-preview1-002111-00 Build : 1ff021936263d492539399688f46fd3827169983 Stack Trace: at System.
Main(String args) in C:\Users\jefff\documents\visual studio 2017\Projects\Schema Set Test\Schema Set Test\Program.cs:line 15 @Jeff Ferguson This is related to the bug fixed by #19812.
It can validate an XML document as it reads and parses the document.
When the program encounters the invalid node, the method Validation Error is called that displays a message explaining why validation failed. An object of the class Xml Schema Set stores a collection of schemas that an Xml Reader can be validated against.It assigns a new Xml Schema Set object to variable schemas, and calls this object's Add method to add a schema to the collection.The Add method receives as arguments a namespace URI that identifies the schema ( and the name and location of the schema file (in the current directory). In the meantime, you could use our daily builds of . Here's documentation on how to do that: https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/Closing the issue...
Unfortunately, this fix was not included in 2.0.0-preview1-005977 release.This property sets the schema(s) used to validate the document read by the Xml Reader.