Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send parent-child records in single XML
Message
From
01/12/2006 00:56:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Send parent-child records in single XML
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173997
Message ID:
01173997
Views:
90
Hi ToAll,

is it posibble to convert this to VB.Net?
CLOSE DATABASES 
OPEN DATABASE (HOME(2)) + "Northwind\northwind.dbc"

* Create XML
SELECT 0
USE northwind!OrderDetails 
SET ORDER TO ORDERID   && ORDERID
SELECT 0
USE northwind!Orders 
SET RELATION TO OrderID INTO OrderDetails
oXA = CREATEOBJECT("XmlAdapter")
oXA.RespectNesting = .T.
oXA.AddTableSchema("Orders")
oXA.AddTableSchema("OrderDetails")
oXA.ToXML("Orders.xml",,.T.)
***Modify Command Orders.xml 

CLOSE DATABASES ALL

* Load XML
oXA = CREATEOBJECT("XmlAdapter")
oXA.LoadXML("Orders.xml",.T.)
FOR i=1 TO oXA.Tables.Count
	oXA.Tables(i).Tocursor()
ENDFOR
SET
thanks and regards,
ryan.
Next
Reply
Map
View

Click here to load this message in the networking platform