On 6/28/2010 7:32 AM, Mosa Yeung wrote:
Hi guys,
I've encountered a situation where I have control characters (in this
case,) being written to xml and read back out for output. XMLFormatter was
able to write it to the xml file without escaping it, but XMLSanner emits an
'XMLErrs::InvalidCharacterRef' on attempting to parse it. I actually don't care to
have the control character pass through correctly, I just want it not to cause the
whole parse to fail.
What's the "correct" way to deal with these control characters?
If XMLFormatter is serializing illegal characters, please file a bug so
it can be fixed. You should definitely get an error when serializing.
It might be better to report an error when you try to create a text node
with illegal characters, but that would have a serious performance
impact on large text nodes.
Dave