Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2004, 12:32 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default using xmlhttp to get html source files, but..

Greetings experienced programmers

I have to admit that I am a rookie to XML and need some help here. I was looking for a script to grab the source code of HTML pages and then save it to a local file. I have been using the script found at http://www.codeproject.com/asp/gethtmlsource.asp and it works great and lets me use the save file in my ASP scripts but there is a problem.

    The problem is that the script above does not preserve all line-spacing, tabs or white-space so the resulting save file would be different than if you manually saved the source file of the page in IE. My ASP script is set up tp read the save file line-by-line and look for key-words so the resulting saved page from the script above is useless. Is there any way to get XMLHTTP to preserve all the extra spacing and tabs?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable View>Source (disable html source) kazmughal44 HTML Code Clinic 11 December 11th, 2007 11:53 AM
jsp files and html files jamara ASP.NET 2.0 Basics 1 November 20th, 2006 07:03 AM
.php files vs .html files pbuongiovanni PHP How-To 2 January 5th, 2006 04:15 AM
Can you preload child html files to 1parent html? bekim Javascript How-To 4 January 22nd, 2005 04:17 PM
problem parsing html using MS.XMLHTTP awardle Classic ASP XML 1 September 15th, 2003 11:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.