Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old April 28th, 2004, 12:33 PM
Registered User
Join Date: Apr 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proffesional ASP XML Book- Help with error

Hi everyone!

On chapter 6 there's an error running displaycontacts.asp:
Microsoft VBScript (0x800A01A8)Error, An object is required. Line 22.

Anyone have the same problem? Here is the code:

  Dim sourceFile, source, rootElement, HTMLCode

  ' Set the source of XML here
  'sourceFile =

  ' Create an instance of the XML parser and load the XML into the DOM
  Set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
  source.load (Server.MapPath("\ch6\contacts.xml"))
  Set rootElement = source.documentElement

  ' Build the string that will be sent to the browser
  HTMLCode = HTMLCode & ""
  HTMLCode = HTMLCode & rootElement.childNodes(0).text
  HTMLCode = HTMLCode & "<P></P><I>"
  HTMLCode = HTMLCode & rootElement.childNodes(1).text
  HTMLCode = HTMLCode & "</I><P></P>"
  HTMLCode = HTMLCode & rootElement.childNodes(2).text
  HTMLCode = HTMLCode & "<P></P>"

  Response.Write HTMLCode

  Set source = nothing



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search code for book "Professional asp.net xml C#" Sunny@China All Other Wrox Books 1 December 4th, 2005 07:08 PM
The Code of book ASP.NET Website Programming Error jackahu BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 16th, 2004 11:04 AM
Professional ASP XML Book codeurai Classic ASP XML 2 January 9th, 2004 08:50 AM
I cant fined this book on your sayt asp xml moon Wrox Book Feedback 1 November 10th, 2003 07:16 AM

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