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
41 stars 15 forks source link

Streaming? #26

Closed jods4 closed 3 years ago

jods4 commented 3 years ago

Sorry, this might be more of a question than an issue.

Is there a way to use this library to parse or write in a streaming fashion? I noticed the "Known issue and Desiderata" section in wiki include Streaming support based on forthcoming LINQ to XML support. :(

Basically, I'm gonna parse and create documents that have a small "frame" (root tag, a header/footer, a few wrapper tags) and a then small element that's repeated many times (50K+).

If we go back to raw Linq to XML, I suppose the technique would be:

Reading

Writing

Linq to XSD

I suppose that today:

Am I correct?

Do you have any idea for a design that could completely merge streaming support into Linq To XSD that I could help implement?

mamift commented 3 years ago

Is there a way to use this library to parse or write in a streaming fashion?

I don't think so; there's no out-of-the-box streaming API or functionality as the library currently is.

Do you have any idea for a design that could completely merge streaming support into Linq To XSD that I could help implement?

I'm sorry; I've never actually worked with the streaming functionality of the Linq to XML API in .NET. I don't think I could shed any light on possible design changes or inform on any of your suppositions I'm afraid.

jods4 commented 3 years ago

No worry, thanks for the answer!

I'm gonna close this issue because I don't think it's actionnable right now. It's probably too complex without a clear design.

If I have some ideas after implementing the plan I outlined above, I'll post a new issue.