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
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
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