Method Parser.XML.Simple()->compat_allow_errors()
- Method
compat_allow_errors
voidcompat_allow_errors(stringversion)- Description
Set whether the parser should allow certain errors for compatibility with earlier versions.
versioncan 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.
versioncan also be zero to enable all error checks.