Here you can find the source of setElementAttr(Element element, String attr, String attrVal)
Parameter | Description |
---|---|
element | a parameter |
attr | a parameter |
attrVal | a parameter |
public static void setElementAttr(Element element, String attr, String attrVal)
//package com.java2s; //License from project: Apache License import org.w3c.dom.Element; public class Main { /**/* w w w . j a v a 2 s . c o m*/ * Set the value of attribute * * @param element * @param attr * @param attrVal */ public static void setElementAttr(Element element, String attr, String attrVal) { element.setAttribute(attr, attrVal); } }