Closed jods4 closed 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.
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.
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
XmlReader
XElement
withXElement.ReadFrom(reader)
.Writing
XElement
XStreamingElement
that lazily enumerate their contents when they're serialized.Linq to XSD
I suppose that today:
XTypedElement(XmlReader)
ctor to parseXElement
s parts. Navigating to those parts would be up to my own code.XElement
. Building theXStreamingElement
path from root to the large parts would be to my own code.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?