Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get Source Code From HTML Document ?
Message
From
18/02/2004 13:49:47
 
 
To
18/02/2004 09:56:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00878010
Message ID:
00878437
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform