1--TEST-- 2DOMNode::getLineNo() 3--SKIPIF-- 4<?php 5include('skipif.inc'); 6?> 7--FILE-- 8<?php 9$file = dirname(__FILE__).'/book.xml'; 10$doc = new DOMDocument(); 11$doc->load($file); 12$nodes = $doc->getElementsByTagName('title'); 13foreach($nodes as $node) { 14 var_dump($node->getLineNo()); 15} 16?> 17--EXPECT-- 18int(4) 19int(8) 20