public boolean getRequiredNodeAsBoolean( OMElement context, XPath xpath ) throws XMLParsingException { String s = getRequiredNodeAsString( context, xpath ); boolean value = parseBoolean( s ); return value; }
public boolean getNodeAsBoolean( OMElement context, XPath xpath, boolean defaultValue ) throws XMLParsingException { boolean value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = parseBoolean( s ); } return value; }