in reply to Help debugging xpath in Perl
'//*[@name="FilterName"]/*' => sub {print $_->text}
If you want to use the full XPath, switch to XML::LibXML. For large files, you can use its XML::LibXML::Reader. To experiment with XPath, you can use XML::XSH2, which is like xmllint combined with Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help debugging xpath in Perl
by tweetiepooh (Hermit) on Mar 17, 2021 at 09:34 UTC |