Skip Menu |
 

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 85569
Status: resolved
Priority: 0/
Queue: XML-Twig

People
Owner: MIROD [...] cpan.org
Requestors: DJIBEL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 3.44
Fixed in: (no value)



Subject: Rename an attribut
Download (untitled) / with headers
text/plain 437b
Dear, The set_name method allows to rename a tag. The set_att method does not rename an attribute, just create an attribute without value or not. It is possible to create a new method which allow to do that. For example : rename_att ? Why ? Because, for the moment, I have to : - store the content of attribute ; - to delete it ; - to create the new attribute with the value ; - sometime, re-encode the value. Best Regards, Djibel
Download (untitled) / with headers
text/plain 414b
On Thu May 23 04:27:22 2013, DJIBEL wrote: Show quoted text
> The set_name method allows to rename a tag. The set_att method does > not rename an attribute, just create an attribute without value or > not. > It is possible to create a new method which allow to do that. For > example : rename_att ?
It's there, it's called change_att_name http://xmltwig.org/xmltwig/twig_dev.html#METHODS_XML_Twig_Elt_change_att_name __ mirod


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.