Advertisement

04.25.2008 at 10:20AM PDT, ID: 23354211 | Points: 500
[x]
Attachment Details

xml xpath

Asked by sasha85 in Active Server Pages (ASP), Extensible Markup Language (XML)

Tags:

sometimes i recieve empty xml like

  <?xml version="1.0" encoding="utf-8" ?>
  <GetUnh xmlns="http://www.pop3.com/" />

and with taht my pages display

Microsoft VBScript runtime error '800a01a8'

Object required: 'documentElement.childNodes(...)'


because in my code i check:
 xmlDoc.setProperty "SelectionLanguage", "XPath"
 If "Error" = xmlDoc.documentElement.childNodes(0).nodeName Then

How can i run a check that will see if there is child first? so if there is chld i will do the check i did above...Start Free Trial
[+][-]04.25.2008 at 11:35PM PDT, ID: 21444731

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628