Java Utililty Methods XML Attribute Replace

List of utility methods to do XML Attribute Replace

Description

The list of methods to do XML Attribute Replace are organized into topic(s).

Method

voidreplaceAttribute(Element element, String attr, String value)
replace Attribute
if (element.hasAttribute(attr)) {
    element.removeAttribute(attr);
element.setAttribute(attr, value);