OleKh Posted March 10, 2013 Share Posted March 10, 2013 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"] ? Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/ Share on other sites More sharing options...
Barand Posted March 10, 2013 Share Posted March 10, 2013 It's the way to referance the value of the current element, in this case "entry" http://www.tizag.com/xmlTutorial/xpathpredicate.php 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! 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. Link to comment https://forums.phpfreaks.com/topic/275455-xpath-query-question/#findComment-1417840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.