Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with XMLAdapter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Problem with XMLAdapter
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01131713
Message ID:
01131713
Vues:
73
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform