XPATH question
Brought to you by:
bs_php,
nigelswinson
From: Behrouz H. <be...@ra...> - 2003-07-03 15:53:39
|
Hi, I am new to this class so please do not laugh if the question is elementary. I am trying to user the following string as the query: require_once("XPath.class.php"); $userID='yyy'; $password='xxx'; $url="docs/userProfile.xml"; $xpath = new XPath($url); $query = "/userProfiles/userProfile/general/userID='$userID' AND /userProfiles/userProfile/general/password='$password'"; $tree = $xpath->exportAsXml($query); and I am keep getting the error: Notice: Undefined index: /userProfiles/userProfile/general/userID='yyy' AND /userProfiles/userProfile/general/password='xxx' in c:\program files\apache group\apache\htdocs\plms\XPath.class.php on line 1235 Please help! Behrouz Heshmatipour E-mail: be...@ra... Office Phone: 1 (866) RAYANE-1 |