LINQ to XSD Alpha 0.2 Refresh for Visual Studio 2008
Posted
29. veljača 2008 13:11
by
dadamec
Microsoft XML Team release refresh of LINQ 2 XSD for VS 2008. This incubation project allow strongly type LINQ queries over XML based on XML Schemas. Everyone who like LINQ to XML would like LINQ to XSD even more. In short what it supply is engine for mapping XML elements to classes over shema definitions.
Simple query in LINQ to XML could look like:
from person in Students.Elements("Student")
and in LINQ to XSD looks like this:
from person in Students.Student
LINQ to XSD gives you command prompt tool LinqToXsd.exe to use it outside the IDE or you can use cool features supplied with VS template that enables you to select xsd schemas and set the Build Action propertie to LinqToXsdSchema. This action enable xsd 2 classes mapping that opens the posibility for strongly typed LINQ queries over XML sources.

Project is only incubating alpha 0.2 but I really hope that will survive until release version.