Hi, i'm creating a transformer to edit links...

in my transformer i've the following method (i've simplified it to put here...):

public void startElement(String uri, String name, String raw,Attributes attr)throws SAXException {


        //The following edits the value of the href attribute, and returns a string with the new value...
        
        String newAttrValue=transformLink(attr.getValue(
"href"), BASE_URL)

        super.startElement(uri, name, raw, newAttrValue?????);

}

so, i need to simply copy the element, i've only to edit the href attribute (I want to copy all the other attributes); the new value of href is in "newAttrValue", but is a String... how to put the new href value as an attribute together all the others?

Best Regards, Davide

Reply via email to