Your XPath needs to be implicit.
Rather than using :my $val = $node->findvalue("value");
you should use: $val = $node->findvalue('./A/B/value');
You should have success :D
Copying your code (and fixing the CDATA to have the closing angle bracket) and using the above code snippet instead:
$ ./test2.pl
Found the value: This is my value
$