You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when I stream this document by passing each line to fxml_stream:parse/2 I get a single message containing the Body element, meaning I am parsing and processing the Detail elements eagerly.
Is it possible to instruct fast_xml to use RangeResult as the root?
Thanks,
Louis
The text was updated successfully, but these errors were encountered:
Hello! I didn't realise in full initially, but this means that for any slightly nested XML document, like the one below where the actual data sits under the dataObjects node, we are actually holding the whole node in memory (in that case, it can be > 100MB - I've replaced the lengthy content with a fake ManyElementsHere element):
In my current use case (XML files > 100MB) this ends up being closer to a DOM parsing than a stream parsing, and as a result it puts a hard limit on maximum file size I can process...
I wonder how complicated it would be to programmatically let the user decide (via a function) if a message must be emitted (based on a business logic)? (in some cases I'm happy with the 2/3 upper nodes, in some cases diving into some nodes, but not into others, is what will make the parsing scalable).
Hello! First, thank you for this library. I'm very happy with the performance improvement over xmerl.
I have a large XML document I wish to stream, it looks like this:
I wish to process each
Detail
element in turn, getting messages like so:However when I stream this document by passing each line to
fxml_stream:parse/2
I get a single message containing theBody
element, meaning I am parsing and processing theDetail
elements eagerly.Is it possible to instruct fast_xml to use
RangeResult
as the root?Thanks,
Louis
The text was updated successfully, but these errors were encountered: