Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get a web xml page into vfp cursor
Message
 
À
10/10/2005 10:28:08
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01057670
Message ID:
01057678
Vues:
13
>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform