runtime icon indicating copy to clipboard operation
runtime copied to clipboard

XSD Validation Support - Missing?

Open NightOwl888 opened this issue 11 years ago • 13 comments

As I posted earlier on StackOverflow, I am attempting to port some older code to DNX core 5.0, but it seems that XSD validation support is missing from the library. Or if I am wrong, could someone please provide a sample or point me to the correct document that shows how to validate XML against XSD (separate documents).

NightOwl888 avatar Oct 03 '15 06:10 NightOwl888

There was a thread in the .NET Foundation forums about XmlSchema which might be related: http://forums.dotnetfoundation.org/t/xmlschema-in-net-core/507

akoeplinger avatar Oct 07 '15 13:10 akoeplinger

Please add support for XSD's in .NET Core.

I dare to say working with XML files and validating those files in an easy way (through xml schema validation) is a pretty common task for most enterprise applications. Therefore I would like to see support inside .NET Core to work with XSD's.

If XSD's will be added to .NET Core it would be great if the current XSD 1.1 release could be supported as it offers support for assertions, which improves XSD validation a lot.

SariDev avatar Mar 24 '16 08:03 SariDev

Hi,

We are working with XML schemas and writing a custom validator for each schema is a major overhead. Is schema validation going to be supported on CoreCLR as it is much needed? If yes, is there a timeline for the same?

Thanks in advance

prachi2607 avatar Apr 04 '16 06:04 prachi2607

Would also love to see support for this. XML won't be going away anytime soon and every enterprise app I've ever touched has validation routines in it :(

wompeter avatar Apr 08 '16 17:04 wompeter

Related to dotnet/runtime#14840?

fubar-coder avatar May 11 '16 09:05 fubar-coder

Has there been any progress with XSD support in .NET Core?

DevilfishSoftware avatar Aug 26 '16 17:08 DevilfishSoftware

You can see this in master in corefx\src\System.Private.Xml\src\System\Xml\Core. It's expected in the next major release of .NET Core.

danmoseley avatar Sep 18 '16 21:09 danmoseley

@danmosemsft should we just close it as fixed or is there still something left?

karelz avatar Sep 23 '16 14:09 karelz

@sepidehMS I'm closing this against dotnet/corefx#11888 because dotnet/corefx#11888 is all that remains for this to be useable. Please correct me if I'm wrong. Also, please help close any other issues about missing XML functionality if dotnet/corefx#11888 will bring it.

danmoseley avatar Sep 23 '16 16:09 danmoseley

Why is it closed? It still does not exist in .NET Core 1.1!

richieeeeeeee avatar Nov 17 '16 08:11 richieeeeeeee

Both issues were closed with milestone=1.2, which means they will be fixed in the release after 1.1. The whole .NET Standard 2.0 push for 1.2 is LOTS of APIs and it takes significant time to port them all even for large team.

karelz avatar Nov 17 '16 16:11 karelz

How to generate a Class from xsd in dot net core 2.0

GurmeetMunshi avatar May 31 '18 06:05 GurmeetMunshi

@GurmeetMunshi, currently it is not supported - you can generate really close to working class using full framework though (might even work without changes). We have a separate issue tracking it: https://github.com/dotnet/corefx/issues/8647

krwq avatar Jun 05 '18 18:06 krwq