Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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
[marto]: usemodperl I guess that depends on what you mean by a safe space, since many people seem to have the impression a safe space allows them to do/say whatever they feel like, without question or critque
[marto]: 'typos'->'typo'
[usemodperl]: it's like you guys are retarded or something, no sense of humor? autism?
[usemodperl]: take things too literally, nothing is funny, everyhting must be perfect, or else, SCOLD SCOLD SCOLD, haha
[Veltro]: usemodperl I think you are offensive right now.
[marto]: people are very defnsive about their bad ideas behaviour' :P
[usemodperl]: sorry veltro, venting...
[usemodperl]: (is that wrong marto?)
[aitap]: usemodperl: maybe it's you who has changed
[marto]: demonstrably yes, since you claim to want a safe space, your definition for which seems to be a place where you can name call, make things up or otherwise post without being challenged

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-06-24 15:51 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.