Closed pjfanning closed 1 year ago
Yeah. FWTW, Woodstox does have limits via:
including P_MAX_TEXT_LENGTH
, but integrating that would be tricky.
So one possibility would be documentation.
In theory it'd be possible to -- with quite a bit of work -- change handling to avoid automatic text coalescing, which would usually make Stax implementation return text segments in smaller chunks. But that seems like a lot of work for questionable benefit. Plus it'd work at sort of wrong level too (in XML token stream, before becoming values).
So perhaps it may be necessary to just document which format backends do support StreamReadConstraints
, in README.md
of this and other dataformat repos.