Is there a way to check to see if a tag exists using getElementsByTagName?
Something like
if objXMLDetails.getElementsByTagName("sentence" = FALSE
If I refer to a tag that doesn't exists I get an error,
problem is it may sometimes be used.
And the node order changes so
If objXMLDetails.childNodes(2).childNodes(3).nodeName = "sentence"
works but only if the tag is in that order.
Thanks
Something like
if objXMLDetails.getElementsByTagName("sentence" = FALSE
If I refer to a tag that doesn't exists I get an error,
problem is it may sometimes be used.
And the node order changes so
If objXMLDetails.childNodes(2).childNodes(3).nodeName = "sentence"
works but only if the tag is in that order.
Thanks