Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Error with selectSingleNode in VBScript to VB6 convert [Thread Next] Re: Error with selectSingleNode in VBScript to VB6 convertTo: NULL Date: 4/3/2008 9:41:00 AM
your code is not safe .
if oDom.selectSingleNode can't find the node , it will return Nothing . and
Nothing hasnot the text property .
may be you can try this
dim xdn
set xdn= oDOM.selectSingleNode("//schemeid")
if Not(xdn is nothing) then
xdn.Text="1"
else
err.raise ,,"can't fiind node schemeid!"
end if
set xdn= oDOM.selectSingleNode("//dateofbirth")
if Not(xdn is nothing) then
xdn.Text="1"
else
err.raise ,,"can't fiind node dateofbirth!"
end if
.
.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
