Java XML Attribute Get getAttributeBoolean(Element el, String label)

Here you can find the source of getAttributeBoolean(Element el, String label)

Description

get Attribute Boolean

License

Open Source License

Declaration

public static boolean getAttributeBoolean(Element el, String label) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.*;

public class Main {
    public static boolean getAttributeBoolean(Element el, String label) {
        String s = el.getAttribute(label);
        return Boolean.valueOf(s).booleanValue();
    }//from www .  jav a  2s  . co m
}

Related

  1. getAttributeAsLong(Element element, String attrName, Long defValue)
  2. getAttributeAsString(NamedNodeMap attributes, String name)
  3. getAttributeAsString(XMLStreamReader reader, String name)
  4. getAttributeAsURIString(XMLStreamReader reader, String name)
  5. getAttributeBoolean(Element aElement, String aAttributeName)
  6. getAttributeBoolean(final Element element, final String name)
  7. getAttributeBoolean(final Node node, final String name, final Boolean defaultValue)
  8. getAttributeBoolean(Node node, String attributeName)
  9. getAttributeBoolean(Node node, String name)