in reply to Perl LibXML XPATH query issues.

This should work:
my $state = $title->findvalue('states/state[@stateId="0"]/caption/@cap +tion');

Replies are listed 'Best First'.
Re^2: Perl LibXML XPATH query issues.
by DunLidjun (Acolyte) on Jan 30, 2014 at 15:03 UTC

    I could have sworn that I used this and it didn't work, but it works now. I don't know what I did wrong.

    Thanks!

    Shawn Way

      At a guess I'd say you had '/states/...' rather than 'states/...'