XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 13th, 2004, 04:09 AM
Beachless Beachless is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Beachless User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Object required: 'objNode' , selectSingleNode problem

Hi I have a problem with some ASP/XML code. I have searched the web and found several other posts with the same problem but cant seem to find a solution anywhere.

The error :

Microsoft VBScript runtime error '800a01a8'
Object required: 'objNode'
/include/gettitlelist.inc.asp, line 231


The code:
'Get the value from an element in the data
Function getElementText(objXML, strXPath)
Dim objNode
Set objNode = objXML.selectSingleNode(strXPath)
getElementText = objNode.text 'line 231
Set objNode = Nothing
End Function

I have no XML experience so I have no Idea what is wrong. And the error only occurs when the users do a large search ??
Any guidance will be much apprieciated.

Let me know please.
Thanks

Last edited by Beachless : May 13th, 2004 at 04:17 AM.

Reply With Quote
  #2  
Old May 13th, 2004, 08:32 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
What happens when you remove the line:
Set objNode = Nothing
?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Object required: 'objNode' , selectSingleNode problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway