Re: [PHP] Xpath arguments in variable

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 13:06 +0530, Sridhar Pandurangiah wrote: > Hi > > I have the following statement that locates the node "membernumber" with > the value A192. This works perfectly fine. > > $v = $row->xpath('//membernumber[. = "A192"]'); > > But now I need to pass this value to XPath withi

[PHP] Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
Hi I have the following statement that locates the node "membernumber" with the value A192. This works perfectly fine. $v = $row->xpath('//membernumber[. = "A192"]'); But now I need to pass this value to XPath within a string variable say $v = $row->xpath('//membernumber[. = $MemberId]'); B