Java tutorial
//package com.java2s; public class Main { private static double parseXmlTextDouble(String text) { try { return Double.parseDouble(text); } catch (Exception e) { return 0.0; } } }