Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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!

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
Re: XML::TREEBUILDER structure modification
by ww (Bishop) 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://863865]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (18)
As of 2015-07-06 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls