I am having a problem with loading ANY XML file using the XMLAdapter. I have MSXML 4.0 SP2 installed and using VFP 9 SP1. Here is the very simple code.
loXMLAdapter = CREATEOBJECT('XMLAdapter')
WITH m.loXMLAdapter
.UTF8Encoded = .T.
.RespectNesting = .T.
.LoadXML('export_pos_response-test.xml')
ENDWITH
Here is what I thing is a very simple XML file
<?xml version="1.0" encoding="UTF-8"?>
<purchaseOrder purchaseOrderNumber="407446" purchaseOrderId="31">
<description>None</description>
<status>Shipped</status>
<confirmationNumber>SQ# 0 1887045</confirmationNumber>
<endUserPONumber>internal</endUserPONumber>
<deleted>false</deleted>
<autofulfill>true</autofulfill>
<dropship>true</dropship>
<blindPackaging>true</blindPackaging>
<shipComplete>false</shipComplete>
<allowBackorder>false</allowBackorder>
</purchaseOrder>
When it executes the .LoadXML method I get
XML Error: XML Parse error: Invalid at the top level of the document.
Line 1, Position 1, export_pos_response-test.xml
This is driving me nuts since it should be SIMPLE! Well, thats my thought.
Any help, clues, etc would be appreciated.
Thanks
John Gundrum
Canon Technology Solutions Inc.