Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

XML::TREEBUILDER structure modification

by TendulkarIsGod (Acolyte)
on Oct 06, 2010 at 20:46 UTC ( #863865=perlquestion: print w/replies, xml ) Need Help??
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!


never mind, monks!


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://863865]
Approved by Corion
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2017-08-17 03:08 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (279 votes). Check out past polls.