Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Xpath - selectSingleNode -[starts-with??` [Thread Next] Re: Xpath - selectSingleNode -[starts-with??`To: NULL Date: 10/1/2007 1:44:00 PM
> You'll have to excuse me, I'm newish to XML/XPATH. & not sure what I'm
> doing.
http://support.microsoft.com/kb/303516
suggestion...recode this:
Set NodeLst = MsDom.selectNodes("/Offset/Dist/x[starts-with(.,'" &
OffsetNo & "')]")
to this:
dim xpath
xpath = "/Offset/Dist/x[starts-with(.,'" &
OffsetNo & "')]"
' now you can see what xpath has evaluated to...
Set NodeLst = MsDom.selectNodes(xpath)
Another thing...is the node Offset your root node?
If so, you do not need the first slash.
xpath = "Offset/Dist/x[starts-with(.,'" &
OffsetNo & "')]"
Brian
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
