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



The information in this article applies to:

  • Microsoft Commerce Server 2002, Service Pack 3 (SP3)
  • Microsoft Commerce Server 2002 SP2
  • Microsoft Commerce Server 2002 SP1
  • Microsoft Commerce Server 2002

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.

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.

WORKAROUND

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

STATUS

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

MORE INFORMATION

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

Modification Type:MajorLast Reviewed:1/14/2005
Keywords:kbbug KB819333 kbAudDeveloper