Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


XML: Checking to see if a node exits

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1905
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XML: Checking to see if a node exits
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 XML: Checking to see if a node exits - 1/25/2005 1:05:33 PM   
  nstraub

 

Posts: 7
Score: 0
Joined: 12/15/2004
From:
Status: offline
Hi all.

I'm trying to check if an element exists in an xml table using dom. according to the msdn library if I use selectsinglenode the object will return a "null value", but I haven't found a way to see this "null value" it talks about (i've tried using IsNull(), getting False; IsObject(), getting True; IsEmpty(), False; and finally using 'MyObject.Value', where I get an error telling me that MyObject is missing or isn't an object)

Plz help me, i don't know what else to do!

Thnx
 
 
Post #: 1
 
 Re: XML: Checking to see if a node exits - 1/25/2005 2:45:24 PM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
if both isempty() returns and isnull() returns false, then it's got 'something', and this object you are referring to is an object.

You might wanna post your code so others can take a look on what you talking about.

(in reply to nstraub)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XML: Checking to see if a node exits Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts