Java tutorial
//package com.java2s; import org.w3c.dom.*; public class Main { /** * 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"); } }