Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Get Source Code From HTML Document ?
Message
De
18/02/2004 13:49:47
 
 
À
18/02/2004 09:56:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00878010
Message ID:
00878437
Vues:
14
Hi,
>You can also use the Internet Transfer Control as well. I've used it before to pull source
If you are already used to it - why not. But since it is only an activeX wrapper around WinInet I think it is safer to leave that step out, if nothing exists. There are some vfp wrappers around WinInet: recommended, because even with a ADSL or cable connection your pc will not be the bottleneck.

> and then use regular expressions (there is a class library for this) to parse out the HTML.
>I have found this to be faster and easier than trying to use the document model to get the HTML out that I want.

If you need parsing, MSHTML is a great help: much is already done and you can walk the DOM tree.
Yes it is slower, but if you anticipate changes on the web site, best performance may be secondary to ease of change. Depends on the actual case IMHO.

>Once you get your brain around regular expressions you will be spoiled and never want to use VFP to parse strings.

Possibly...

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform