public static boolean readBooleanAttributeElement ( final XMLExtendedStreamReader reader , final String attributeName ) throws XMLStreamException { requireSingleAttribute ( reader , attributeName ) ; final boolean value = Boolean . parseBoolean ( reader . getAttributeValue ( 0 ) ) ; requireNoContent ( reader ) ; return value ; }
Read an element which contains only a single boolean attribute .