This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Description
right now, it will throw error when at the end of chunk (highWaterMark).
this is a major issue because parsing the whole string is kind of defeating the purpose of this lib.
this issue wasn't tested is because the default highWaterMark is pretty high (64kb) IIRC vs size of strings in test cases
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
code: 'ERR_BAD_END_ELEMENT',
offset: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
})
potential solution:
do sth like this https://github.com/silviucpp/erlxml/blob/master/c_src/xmlstreamparser.cc
once we find a complete stanza, we pass to SaxParser to parse