aakikce has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a tag like <img src="path of image"/> in a xml document. I want to change the name of the attribute using XML::Twig.
I tried like the following:-
for $item ($twig->get_xpath("//img")) { $item->change_att_name('src', 'links') }
But I didn't get result. pls help me
thanks
Aakikce
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: change attribute name using XML::Twig
by Fletch (Bishop) on Apr 26, 2007 at 13:07 UTC | |
by aakikce (Acolyte) on Apr 26, 2007 at 13:15 UTC | |
by izut (Chaplain) on Apr 26, 2007 at 15:14 UTC | |
|
Re: change attribute name using XML::Twig
by mirod (Canon) on Apr 26, 2007 at 13:12 UTC |