Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: "Run-time error: -2147467259 IPersistXML: Error parsing XML" error message when you load an XML document in Commerce Server 2002


View products that this article applies to.

Symptoms

Well-formed XML documents start with a declaration that identifies the document and that identifies the version of XML that is being used. However, if the <xml version='1.0'> tag is present in an XML document, the LoadXML method of the IPersistXML interface fails when the LoadXML method tries to load the document in Microsoft Commerce Server 2002. When this problem occurs, you receive the following error message:
Run-time error: -2147467259 IPersistXML: Error parsing XML
Error Code 0x80004005
Description: �Unspecified error�. Error occurred in XML stream near�

↑ Back to the top


Cause

The LoadXML method is not designed to handle all components of an XML document. In this case, the LoadXML method fails when it tries to parse the header.

↑ Back to the top


Workaround

Remove the <xml version='1.0'> tag from the header of the XML document before you process the document.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the IPersistXML interface, visit the following Microsoft Developer Network (MSDN) Web site:

↑ Back to the top


Keywords: KB819333, kbbug

↑ Back to the top

Article Info
Article ID : 819333
Revision : 4
Created on : 3/9/2007
Published on : 3/9/2007
Exists online : False
Views : 415