Java XML Attribute Add addAttribute(Document doc, org.w3c.dom.Element e, String index, String value)

Here you can find the source of addAttribute(Document doc, org.w3c.dom.Element e, String index, String value)

Description

add Attribute

License

Open Source License

Declaration

public static Node addAttribute(Document doc, org.w3c.dom.Element e, String index, String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Document;
import org.w3c.dom.Node;

public class Main {
    public static Node addAttribute(Document doc, org.w3c.dom.Element e, String index, String value) {
        e.setAttribute(index, value);//from   w ww  . j av a 2  s. c om
        return e;
    }
}

Related

  1. addAttrDirect(Map values, Element el)
  2. addAttribute(Document doc, Element node, String name, String value)
  3. addAttribute(Document doc, Element node, String name, String value)
  4. addAttribute(Document doc, Element parent, String attribute, Object value)
  5. addAttribute(Document doc, Node parentNode, String name, String content)
  6. addAttribute(Document doc, String name, Element e, String value)
  7. addAttribute(Document document, Node node, String attName, String attValue)
  8. addAttribute(Document document, Node node, String name, String value)
  9. addAttribute(Document document, String AttribName, String attribValue, Element element)