In particular the example near the bottom of that page where it changes the page value to 394. That all works, so I'm sure my setup etc, is okay. However, when I try to tweak this for my purposes, I run into a stone wall, and it just keeps telling me
Can't locate object method "setData" via package "XML::LibXML::Element"
(and yes, I googled that up...zilch).
Now, in the example, the xpath expression locates one single node. In my application, I'm interested in finding all nodes with a particular attribute and changing those texts around a little bit. I have established that the xpath expression does indeed pull up all the correct nodes from the xml file (via printing out the contents) and I know that the change function works. But adding in the last setData to change the text goes belly up.
Here's my code snippet.