Java tutorial
//package com.java2s; public class Main { private static boolean parseXmlTextBoolean(String text) { try { return Boolean.parseBoolean(text); } catch (Exception e) { return false; } } }