Here you can find the source of readBoolAttr(Element element, String attributeName)
public static boolean readBoolAttr(Element element, String attributeName)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static boolean readBoolAttr(Element element, String attributeName) { String attributeValue = element.getAttribute(attributeName); return Boolean.parseBoolean(attributeValue); }// w w w. ja va 2s. c o m }