Here you can find the source of getBool(Element el, String attrName, boolean defaultValue)
public static boolean getBool(Element el, String attrName, boolean defaultValue)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static boolean getBool(Element el, String attrName, boolean defaultValue) { if (el.hasAttribute(attrName)) return Boolean.parseBoolean(el.getAttribute(attrName)); return defaultValue; }/*from ww w . j a v a 2 s. c o m*/ }