Hi there!
In XML file, how do I check if a particular element exists or not in ASP (Vbscript)?
I have used this:
I have checked for IsNull(elmt), which always returns True, even if there is a node.Code:set elmt=objXML.selectSingleNode(elmntname) 'elmntname is passed as a parameter
Also I have used the following code to check,
But, this gives the "Node not found!" message, even if there is one in the file.Code:if elmt is nothing then Response.write "Node not found!" else Response.write "Node found!" end if
Please help me.




Reply With Quote