You can use the XMLAdapter class (VFP 8 and VFP 9)
local oXML,cXML
oXML = Createobject("XMLAdapter")
oXML.AddTableSchema('yourcursor')
oXML.ToXML("cXML")
Your cursor is now converted to an XML text file (cXML) that you can pass
as a parameter to another form, with a private data session.
do form theotherform with cXML
In the receiving form you can reconvert the XML file thus passed to a
cursor, using XMLtoCursor, like so:
** init event
lparameter cXML
XMLTOCURSOR( cXML , 'yourcursor' , 4 )
Now, you have the cursor originated in the first form, but into a private
data session, so no interference with the original form. In your case, you
say you receive and XML file, so play with the above functions and you're
all set.
Regards
Rafael Copquin
----- Original Message -----
From: Sytze de Boer
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 3:21 AM
Subject: VFP to XML
Hi Foxers
This is completely new territory for me and I hope someone can help
Client has given a XSL file and an XML file
The XSL file is referred to as a schema file
How can I convert a small dbf file to XML file ?
Do I need the XSL file to do this ?
Sytze
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.