static boolean readBoolean ( Node node ) { if ( node == null ) { throw new XmlException ( "Tried to read boolean value from null node" ) ; } String value = node . getFirstChild ( ) . getNodeValue ( ) ; return Boolean . parseBoolean ( value ) ; }
Parse a boolean value from the first child of the given node .