Replies: 1 comment 2 replies
-
You can accomplish this by escaping the data yourself - storing When parsing files like this, you'd need to also disable unescaping - using Note that the resulting file is not valid per XML specification, as any characters escaped with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, if this is possible but I haven't found out how, please let me know how.
I need to serialize a C array of chars, say char buf[10], which might contain the null character '\0'. The format establishes, standardized and governed by a rather major standardization organization so it's not something you change. My issue is that as soon as a null character is encountered pugi aborts. So, what I would like the output to contain is
<VT xml:space="preserve">�0</VT>
for the string "\08"
Can this be accomplished?
Beta Was this translation helpful? Give feedback.
All reactions