public double getRequiredNodeAsDouble( OMElement context, XPath xpath ) throws XMLParsingException { String s = getRequiredNodeAsString( context, xpath ); double value = parseDouble( s ); return value; }
public double getNodeAsDouble( OMElement context, XPath xpath, double defaultValue ) throws XMLParsingException { double value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = parseDouble( s ); } return value; }