Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #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


Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:12 AM.

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