Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

XML::TREEBUILDER structure modification

by TendulkarIsGod (Acolyte)
on Oct 06, 2010 at 20:46 UTC ( [id://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

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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-28 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found