XL2002: "Invalid XML Declaration" Error Message When You Import Data from a Web Source (284868)
The information in this article applies to:
This article was previously published under Q284868 SYMPTOMS
When you attempt to import data from a Web source in Microsoft Excel 2002, you may receive an error message similar to the following
File cannot be opened because:
Invalid xml declaration.
followed by lines identifying the position of the error and the Extensible Markup Language (XML) version of the file.
CAUSE
This behavior occurs because the Excel 2002 XML parser requires that the characters of the XML tag <?xml?> be absolutely the first characters on the XML page. They cannot be preceded by any other characters, even white space characters that are usually ignored by XML interpreters.
NOTE: The XML parser in Microsoft Excel 2000 does not function under these requirements.
WORKAROUND
To work around this issue, ensure that nothing whatsoever precedes the XML tag in documents that will be opened as Web data sources in Excel 2002.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 8/6/2001 |
---|
Keywords: | kbbug kberrmsg KB284868 |
---|
|