glimpseio / GlimpseXML

Fast XML DOM parser & serializer in pure Swift for iOS & Mac
MIT License
8 stars 7 forks source link

Big string nodes are shortened to 4077 Bytes #11

Open klausbussekw opened 4 years ago

klausbussekw commented 4 years ago

I'm parsing XML files that contain base64 encoded JPG files, which means that the base64 encoded image contains strings of about 80kB.

Parsing works fine, and I can read these nodes correctly.

However, when I write the files out using xmlDocument.serialize(), these nodes are shortened to 4077 bytes. This seems to be pretty close to 4096 bytes, considering that the node key has a length of 8…

The file stays structurally intact (no missing nodes, valid XML). I'm running on OS X.