Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [smila-dev] org.eclipse.smila.utils.XMLHelper / XML 1.1

Hi Andreas,

> I'm afraid the solution won't be that easy as I first thought...
> 
> Setting the XML header to 1.1 will diminish the problem but not solve
it.
> Reason is, that XML 1.1 still doesn't allow the following characters:
> - unescaped control characters
> - escaped control character #x0
> 
> So, if we have one of those in an imported document, there's still a
chance
> to get the error I described before.
> (Problem is not academic, e.g. the #x0 character can be found in our
html test
> documents)
> 
> So it looks like we have to find a more general solution for this.
(CDATA?)

How about removing control character #x0 just before serializing a
record to a string?
If XML 1.1 has a problem only with this control character (even if
escaped) than it should be not too hard to remove it from the string.
What do you think?

Cheers
Igor


Back to the top