Here you can find the source of getAttribBoolean(Element ele, String name)
public static boolean getAttribBoolean(Element ele, String name)
//package com.java2s; import org.w3c.dom.*; public class Main { /**/*from w w w .j a v a2 s . c o m*/ * Parses the given attribute of this tag and returns it as a boolean. * Essentially compares the lower case textual value to the string "true" */ public static boolean getAttribBoolean(Element ele, String name) { String sval = ele.getAttribute(name); return sval.toLowerCase().equals("true"); } }