Skip to content

Why is a single XmlText is split into two XmlTextEvent? #152

Answered by renggli
aeb-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that is expected behavior. Multiple consecutive XmlTextEvent might be crated based on the how the underlying stream is buffered. Most file/socket streams have some kind of buffering/chunking.

At the cost of (a little) performance and memory you can combine adjacent XmlTextEvent using stream.normalizeEvents().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #151 on August 06, 2022 18:09.