OleKh Posted March 10, 2013 Share Posted March 10, 2013 (edited) This is the part of example from http://ua2.php.net/manual/en/domxpath.query.php // our query is relative to the tbody node $query = 'row/entry[. = "en"]'; What does that dot mean in [. = "en"] ? Edited March 10, 2013 by OleKh Quote Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/ Share on other sites More sharing options...
Solution Barand Posted March 10, 2013 Solution Share Posted March 10, 2013 (edited) It's the way to referance the value of the current element, in this case "entry" http://www.tizag.com/xmlTutorial/xpathpredicate.php Edited March 10, 2013 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/#findComment-1417811 Share on other sites More sharing options...
OleKh Posted March 10, 2013 Author Share Posted March 10, 2013 Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/#findComment-1417814 Share on other sites More sharing options...
salathe Posted March 10, 2013 Share Posted March 10, 2013 A good introduction is also Schlitt's XPath overview. Then there is always the XPath 1.0 specification, which is really handy for quickly finding exactly what you need. Quote Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/#findComment-1417840 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.