|
DOMNode::getNodePathGet an XPath for a node Beschreibung
public string DOMNode::getNodePath
( void
)
Gets an XPath location path for the node. Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
Returns a string containing the XPath, or Beispiele
Beispiel #1 DOMNode::getNodePath example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: /fruits /fruits/apples /fruits/apples/apple[1] /fruits/apples/apple[2] /fruits/pears /fruits/pears/pear Siehe auch
|