perlmonkdr has asked for the wisdom of the Perl Monks concerning the following question:
Hi! Guys
How are you in this new year!!! I hope that so fine...
Well, I'm now working with HTML::Treebuilder, on this, I will want to add to each tag the address of this like a new attribute, but couldn't found the way to walk through the complete tree...
See the example of what i'm talking:
<html addr="0"> <head addr="0.0"> <title addr="0.0.0">Seekers of Perl Wisdom</title> <meta name="Content-type" content="text/html" addr="0.0.1" /> </head> <body addr="0.1"> <h1 addr="0.1.0">Hello World!!!</h1> </body> </html>
Do you know some way to do that, HTML::Element->right() appear not to be the way, and google don't suggest nothing useful.
Thank You and happy new year
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Walk through HTML::Treebuilder
by Tux (Canon) on Jan 06, 2008 at 09:05 UTC | |
by perlmonkdr (Beadle) on Jan 06, 2008 at 15:19 UTC | |
|
Re: Walk through HTML::Treebuilder
by Anonymous Monk on Jan 06, 2008 at 07:35 UTC | |
by Anonymous Monk on Jan 06, 2008 at 07:51 UTC | |
by perlmonkdr (Beadle) on Jan 06, 2008 at 15:55 UTC | |
by Tux (Canon) on Jan 08, 2008 at 11:47 UTC |