1--TEST--
2DOMNode::getNodePath()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$file = __DIR__.'/book.xml';
8$doc = new DOMDocument();
9$doc->load($file);
10$nodes = $doc->getElementsByTagName('title');
11foreach($nodes as $node) {
12    var_dump($node->getNodePath());
13}
14?>
15--EXPECT--
16string(20) "/books/book[1]/title"
17string(20) "/books/book[2]/title"
18