Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Parser
Parser.XML
Parser.XML.Simple

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. This is the default in 7.6.


version can also be zero to enable all error checks.