JuliaIO / EzXML.jl

XML/HTML handling tools for primates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XML files sometimes have a NULL_BYTE

fchorney opened this issue · comments

Hi, I have an issue I wanted to bring up here. I'm not sure if the issue is here, or in XLSX.jl ( or libxml2?) but wanted to open up a discussion.

I have already opened an issue in XLSX.jl but since they use EzXML I figured the issue might be here instead. felipenoris/XLSX.jl#168

So I currently can't reproduce the issue, but I am using XLSX.jl to generate some XLSX files and every once and again we end up with a NULL_BYTE in the xl/worksheets/sheets1.xml file. There doesn't seem to be any pattern in where it shows up.

For instance in this example a closing bracket > was replaced with a NULL_BYTE (I am representing it with NULL_BYTE but it's actually just a null byte 0x00).

... <c r="BQ8" t="s"><v>90</v></c><c r="BR8" t="s"><v«NULL_BYTE»90</v></c><c r="BS8" t="s"><v>90</v></c> ...

In another instance it replaced an equals symbol = with a NULL_BYTE

... <c r="BG8" t="s"><v>90</v></c><c r«NULL_BYTE»"BH8" t="s"><v>90</v></c><c r="BI8" t="s"><v>90</v></c> ...

And I have seen a few other various files where other random characters in this XML output are replaced by null strings.

I have no idea if it's even any of these libraries, or if it's somehow a network transfer error, but I speculate its whatever is writing the sheet1.xml file since thats the only file it ever ends up in.

If anybody had any ideas where I can look further I would really appreciate it. Thanks!