Java XML Attribute Create writeBoolAttr(Element element, String attributeName, boolean value)

Here you can find the source of writeBoolAttr(Element element, String attributeName, boolean value)

Description

write Bool Attr

License

Open Source License

Declaration

public static void writeBoolAttr(Element element, String attributeName, boolean value) 

Method Source Code

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

import org.w3c.dom.Element;

public class Main {
    public static void writeBoolAttr(Element element, String attributeName, boolean value) {
        element.setAttribute(attributeName, Boolean.toString(value));
    }/*from ww  w. j a  v  a2  s.co m*/
}

Related

  1. writeAttribute(PrintWriter w, Attr attr, int depth)
  2. writeAttribute(XMLStreamWriter writer, String name, Object value)
  3. writeAttribute(XMLStreamWriter xmlw, String name, String value)
  4. writeAttributeEvent(XMLEvent event, XMLStreamWriter writer)
  5. writeAttributes(Node node, Writer out)
  6. writeOutAttributesForNode(String[][] attributes, Node node)
  7. writeSvgAttributes(XMLStreamWriter w, Supplier cssClass, Supplier fill, Supplier stroke)
  8. writeXmlAttribute(XMLStreamWriter out, String name, Date value)