Here you can find the source of writeBoolAttr(Element element, String attributeName, boolean value)
public static void writeBoolAttr(Element element, String attributeName, boolean value)
//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*/ }