SpaceRequiredBeforeEncodingInXMLDecl

Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

General description of the error:

The format of the error message: White space is required before the encoding pseudo attribute in the XML declaration.

Error description in schema standard: http://www.w3.org/TR/2004/REC-xml-20...04/#NT-XMLDecl

Possible causes for this error:

  • No space is given between attributes in XML declaration.

Example

<?xml version="1.0"encoding="UTF-8"?>

Error message: Fatal Error SpaceRequiredBeforeEncodingInXMLDecl : White space is required before the encoding pseudo attribute in the XML declaration.

How to fix: Separate the attributes with " ".

<?xml version="1.0" encoding="UTF-8"?>