Don't know if this will help or not, but this is what I used yesterday to
convert a sql server table to xml
Still haven't figured out how to save it as a text file on the server yet
though <grin>
Just take out the response.write and use the foxpro command, something like
fput I believe.


qry = "SELECT svclatitude, svclongitude, svcrate + ' ' + svcfirstname + ' '
+ svclastname AS htmldesc, svcrate + ' ' + svclastname AS labeldesc,
'enlisted' as titledesc from Roster WHERE svcBranch = 'NAVY' "
Set oRS = oConn.Execute(qry)

oRS.MoveFirst()

response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
response.write("<markers>")
while (not oRS.EOF)
        response.write("<marker>")
        response.write("lat=" & oRS("svclatitude") & " ")
        response.write("lng=" & oRS("svclongitude") & " ")
        response.write("html=" & oRS("htmldesc") & " ")
        response.write("label=" & oRS("labeldesc") & " ")               
        response.write("title=" & oRS("titledesc") & " ")       
        response.write("</marker>")                     
        oRS.MoveNext()
wend

oRS.close()
oConn.close()
response.write("</markers>")

Virgil Bierschwale
http://www.bierschwale.com
http://www.bierschwalesolutions.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sytze de Boer
Sent: Tuesday, May 29, 2007 1:21 AM
To: [email protected]
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.

Reply via email to