Escape characters invalid in XML, http://www.w3.org/TR/xml/#charsets, for #1
Don't use CDATA for script and style as not all characters can be expressed. Closes #2
Remove invalid characters, the only way to go it seems for XML 1.0. Closes #1
Document incompatibilities with existing implementations, add Firefox compat test