Your problem might be in another area than where you think it is, but to use
the variable in the expression try this:
var selectedNode =
doc.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Kontakty[@Nazwisko
= '" + selectedCustomer + "']")
If this doesn't solve the error, your problem is probably in one of the
XPAth expressions you have used. The XML nodes are not being found, so you'll
need to debug your XPath expression to find the correct one to the XML nodes
you want to find.
---
S.Y.M. Wong-A-Ton
> Hi, I'm new to XPath
>
[quoted text clipped - 20 lines]
> Any hints appreciated,
> jpk_2005
j_kowalska@vp.pl - 25 Aug 2006 11:42 GMT
Thanks a lot, it solved my problem:)
S.Y.M. Wong-A-Ton napisal(a):
> Your problem might be in another area than where you think it is, but to use
> the variable in the expression try this:
[quoted text clipped - 34 lines]
> > Any hints appreciated,
> > jpk_2005
S.Y.M. Wong-A-Ton - 25 Aug 2006 22:20 GMT
You're welcome. Glad it solved the problem.
---
S.Y.M. Wong-A-Ton
> Thanks a lot, it solved my problem:)
>
[quoted text clipped - 37 lines]
> > > Any hints appreciated,
> > > jpk_2005