Today I found am error in MSDN forum that I encountered and suffered with him in the past:
“Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 4.”
- You have a single whitespace character on the first line of your schema before the start of the xml declaration.
- You have a single whitespace character on the first line of your XML file before the start of the xml declaration.
- Open your XSD file in Notepad and remove the character, save and then re-validate- the problem should go away.
- When using XML file you must start declaration in the first row with <?xml version="1.0" encoding="UTF-8" ?> right away. No space is allowed in the beginning of the xml file.
Tags: BizTalk | Schemas | Errors and Warnings, Causes and Solutions