Java tutorial
//package com.java2s; import org.w3c.dom.Node; public class Main { public static boolean getBooelanAttribute(Node node, String attributeName) { return node.getAttributes().getNamedItem(attributeName).getNodeValue().equals("true"); } }