[jdom-interest] Element setAttribute

Martin Gerlach gerlach at planb-media.de
Mon Jun 18 03:45:44 PDT 2001


Hi 

i'm missing a/the method to set an attribute for an element.
It should work like:

public void setAttribute(String attrName, String attrValue) {
	Attribute attr = getAttribute(attrName);
	if(attr != null) {
		attr.setValue(attrValue);
		return;
	}
	addAttribute(attrName, attrValue);
}

Or why isn't it implemented or won't implemented ?

Thanks for any reply.

-- 
_______________________________________________________________

    Martin Gerlach                Distributed Systems
    
    phone: +49 (0)221 250-1046    mailto:gerlach at imigo.de
    fax:   +49 (0)221 250-1588    http://www.planb-media.de
    
    plan_b media AG               Coloneum
    Butzweilerstr. 255            D-50829 Cologne, Germany
_______________________________________________________________



More information about the jdom-interest mailing list