TendulkarIsGod has asked for the wisdom of the Perl Monks concerning the following question:

Monks, I am stumped

I couldn't find anything on the CPAN XML::TreeBuilder documentation that lets me take a node and change the value of an attribute of that node. Am I missing something, or is this not implemented?

If it is implemented, could anyone point me to the right direction?

If it is not implemented, does anyone have any idea how I might do this? Is my only recourse to go and fiddle with HTML::Element?

Anything to make my life lazier would be much appreciated

Much thanks!

UPDATE:

never mind, monks!

xml::xpath!

i should have looked harder before asking. apologies to whoever clicks the link. This is when you need a delete thread button

  • Comment on XML::TREEBUILDER structure modification

Replies are listed 'Best First'.
Re: XML::TREEBUILDER structure modification
by ww (Archbishop) on Oct 06, 2010 at 22:26 UTC
    Looks to me as though your life is lazy enough.
    "This is when you need a delete thread button."
    Nope! ...more like an instance when you clearly needed to follow the carpenter's advice:
    "Measure twice, cut once."

      i thought that was measure thrice, not twice

      but then again, measuring thrice is way too much work. i need a script that will measure it for me. maybe even cut it too. then all i have to do is take the credit

Re: XML::TREEBUILDER structure modification
by metaperl (Curate) on Oct 07, 2010 at 12:37 UTC