Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send parent-child records in single XML
Message
De
01/12/2006 09:31:48
 
 
À
01/12/2006 01:21:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01173991
Message ID:
01174073
Vues:
10
Ryan,

I see that Cetin has given you a reply ... using a DataSet, setting the relationships, and using the .WriteXml() method of the DataSet. That's the same thing I would have suggested.

~~Bonnie



>Hi Bonnie,
>
> thanks for reply,can you please give me a example?
>
>like this one, this code is VFP
>
>
>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
>
>
>
>>Short answer is yes.
>>
>>~~Bonnie
>>
>>
>>>Hi toall,
>>>
>>>Is it possible to send parent-child records in single XML file?
>>>
>>>thanks,
>>>ryan
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform