Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import XML
Message
From
07/11/2014 00:00:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Import XML
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01610644
Message ID:
01610644
Views:
62
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
Reply
Map
View

Click here to load this message in the networking platform