When I run your code, I do NOT get any errors (warnings, yes). But then, I have XML::XPath installed.
I suggest installing modules before attempting to use them.
Update: Note that I'm not saying the code does what you want; see other replies in this thread for that. But to get the Can't locate object method "getAttribute" via package "XML::XPath::NodeSet" at C:\Perl\try1.pl line 13. error to go away, install the module.
HTH,
planetscapeIn reply to Re^3: problems with Xpath
by planetscape
in thread problems with Xpath
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |