Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic 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 ASP Free Forums Sponsor:
  #1  
Old November 26th, 2004, 05:20 AM
Maarten1983 Maarten1983 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 26 Maarten1983 User rank is Sergeant (500 - 2000 Reputation Level)Maarten1983 User rank is Sergeant (500 - 2000 Reputation Level)Maarten1983 User rank is Sergeant (500 - 2000 Reputation Level)Maarten1983 User rank is Sergeant (500 - 2000 Reputation Level)Maarten1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 h 47 m 42 sec
Reputation Power: 0
Problem with getElementsByTagName and appendchild

Hi,

I'm trying to edit a xmldocument. I want to append a new element to a element i've to search in my nodelist, but I 've a problem.

I tried to append the element, but then i recieve the next error:
"Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'appendChild'"

The code i'm using is:
Code:
 
'Search for all the elements DimensionLevel1
set objDimensionLevel1=objXML.getElementsByTagName("DimensionLevel1")
'for all the nodes
for i = 1 to objDimensionLevel1.length
'Check if the value is the same as the one in my recordset
If objDimensionLevel1.item(i-1).getAttribute("Id") = rsStoredProc("Dl2DimL1") then
'Append the childnode
	objDimensionLevel1.appendChild objDimensionLevel2
end if
next

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Problem with getElementsByTagName and appendchild


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