Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
while using xpath, can i find current line number for the particular node.
ex:@a = get_xpath(//para) can i get the starting line number for the each para.
When I use the XML::Twig I get the line number after the closing tag. But I need the starting line number.
Please give me suggestions.
thanks in advance.
--Ind--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Xpath and line number
by mirod (Canon) on May 20, 2004 at 05:36 UTC |