in reply to Re^2: XML::Twig parsing poorly structured content
in thread XML::Twig parsing poorly structured content

"I'm not familiar with this handler construction: 'div[@class="event"]'"

Here's the current W3C Recommendation: "XML Path Language (XPath) 2.0 (Second Edition)".

In almost all cases, I find the "3.2.4 Abbreviated Syntax" section adequate for my needs. This has a description of 'div[@class="event"]' (as para[@type="warning"]); and lots more besides.

— Ken

Replies are listed 'Best First'.
Re^4: XML::Twig parsing poorly structured content
by slugger415 (Monk) on Jan 25, 2017 at 16:08 UTC

    Thank you Ken! very useful (and more to learn, as always).

    Scott