Wrox Programmer Forums
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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 September 13th, 2003, 06:12 AM
Registered User
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem parsing html using MS.XMLHTTP

I've been working on this asp page for ages now and can not seem to get my head around it,

bascailly when i do a response.write any '£' symbols are being replaced with '?' doing a response.binarywrite shows the correct symbols but this is no good to me as I need to parse the data.

the code I am using is shown below, any help on this matter would be much appreciated.

Thanks Aaron

URL = "http://cgi6.ebay.co.uk/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&user id=grand2010&sort=2&rows=25&since=-1&rd=1"
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")'
objXMLHTTP.Open "GET", URL, false

sHTML = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
Old September 15th, 2003, 11:38 PM
Registered User
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

This one got me too..

XMLHTTP returns the results as a unicode string.

To solve this, I used Server.CreateObject("WinHttp.WinHttpRequest.5.1") instead. All properties and methods are the same.

This component is available by default on any Windows 2000 Server with SP3. It works in exactly the same way, but for some reason does not return ResponseText as unicode.

If for some reason you MUST use the XMLHTTP component, let me know and I'll explain how (it involves converting the binary output to a string, a time consuming task!)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing HTML with Regex hugh@kmcnetwork.com VB How-To 0 February 5th, 2007 05:44 PM
Parsing an html file hydroxide Pro PHP 3 June 27th, 2006 02:12 AM
Problem with using POST method with XMLHTTP vvr Classic ASP XML 1 December 6th, 2004 01:44 AM
using xmlhttp to get html source files, but.. noonkhamei XML 0 April 14th, 2004 12:32 AM
Problem With Microsoft.XMLHTTP binod XSLT 2 August 13th, 2003 02:33 PM

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