Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import XML
Message
De
07/11/2014 00:00:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Import XML
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01610644
Message ID:
01610644
Vues:
61
I try using xmlAdapter to import XML file something like picture attacted below :


?xml version="1.0" standalone="yes"?
DATAPACKET Version="2.0"
METADATA
FIELDS
FIELD attrname="DOCKEY" fieldtype="i4" required="true"
FIELD attrname="DOCNO" fieldtype="string" required="true" WIDTH="20"
FIELD attrname="DOCNOEX" fieldtype="string" WIDTH="20"


p/s I remove the "< >", because forum not allowed, can see code in the attached picture.


ad = CREATEOBJECT('xmladapter')
ad.LoadXML(cfile,.T.)
ad.LoadXML('inv.xml',.T.)

but ad.tables.count = 0, means nothing is imported

i also try XMLTOCURSOR, but hopeless also.

anybody can help?

thx
Répondre
Fil
Voir

Click here to load this message in the networking platform