3

I have a rather large XSD file and I have heard that it is possible using the entity framework to connect to XML files like databases and validate them against the XSD, however I do not know how to go about doing this.

So what I'm trying to do is generate a entity framework model from my XSD file, and I imagine this will generate a series of objects which will be used when opening a XML file for validation and population.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112

2 Answers2

1

As well you can try to use latest (4.5) version of XML Schema Definition Tool

xsd.exe /d /eld "your_schema.xsd"

where /eld option enable you to use LINQ to DataSet

Andrey Morozov
  • 7,839
  • 5
  • 53
  • 75
0

Linq2xsd will do that. http://linqtoxsd.codeplex.com/ once dead it now lives on codeplex.

Derek Beattie
  • 9,429
  • 4
  • 30
  • 44
  • 1
    I haven't kept up on it but I used the alpha version before it was open source and never had any problems. The version on codeplex is ready for 4.0. It's open source so that's nice too. – Derek Beattie Apr 05 '11 at 03:20