Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get a web xml page into vfp cursor
Message
 
To
10/10/2005 10:28:08
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01057670
Message ID:
01057678
Views:
12
>Hi All,
>
>How can I get that address into a vfp cursor?
>
>http://www.tcmb.gov.tr/kurlar/today.xml

Metin
Use the Internet Browser control to browse to this file, then just grab the xml string and run an xmltocursor. Try something like:
oie = CreateObject("InternetExplorer.Application")
oie.Navigate2("http://www.tcmb.gov.tr/kurlar/today.xml")
** here you should check for ReadyState to see it's finished loading
** i just don't remember exactly the syntax:-)
oDoc = oie.Document
myXmlStr = oDoc.body.innertext 
** myXmlHtml = oDoc.body.innerHtml

** then just xmltocursor the myXmlStr string
HTH
Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform