mamift / LinqToXsdCore

LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code and .NET Core 3.1, .NET 5+ for the code generator CLI tool).
Microsoft Public License
43 stars 15 forks source link

Add extension method to determine the root element when schemas use 'salami slice' pattern #17

Open mamift opened 4 years ago

mamift commented 4 years ago

When XSD's are authored following the 'salami slice' pattern, determining the ultimate root element(s) requires manually inspecting the schema which is annoying and tedious, but brute forcing it is possible with the backward inorder tree traversal algorithm.

Impact: add a CLI argument that also requires the XSD file path and then return the name of the root element(s) in the CLI.