Method Parser.XML.Simple()->compat_allow_errors()
- Method compat_allow_errors
void compat_allow_errors(string version)
- Description
Set whether the parser should allow certain errors for compatibility with earlier versions. version can be:
"7.2" Allow more data after the root element.
"7.6" Allow multiple and invalidly placed "<?xml ... ?>" and "<!DOCTYPE ... >" declarations (invalid "<?xml ... ?>" declarations are otherwise treated as normal PI:s). Allow "<![CDATA[ ... ]]>" outside the root element. Allow the root element to be absent.
version can also be zero to enable all error checks.