Java XML Attribute Add addAttribute(Element elem, String name, String value)

Here you can find the source of addAttribute(Element elem, String name, String value)

Description

add Attribute

License

Apache License

Declaration

public static void addAttribute(Element elem, String name, String value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Element;

public class Main {
    public static void addAttribute(Element elem, String name, String value) {
        elem.setAttribute(name, value);//from   w  ww.  java  2 s. c  o m
    }
}

Related

  1. addAttribute(Document document, Node node, String attName, String attValue)
  2. addAttribute(Document document, Node node, String name, String value)
  3. addAttribute(Document document, String AttribName, String attribValue, Element element)
  4. addAttribute(Document xmlDoc, Node node, String attrName, String attrValue)
  5. addAttribute(Element el, String name, String val)
  6. addAttribute(final AttributesImpl attributes, final String localName, final Object value)
  7. addAttribute(final Document doc, final Element parent, final String name, final String value)
  8. addAttribute(final Element element, final String attributeName, final String value)
  9. addAttribute(final Node e, final String name, final String value)