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.
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.