return new BooleanValue(value);
if(value.equals("0") || value.equals("false")) return BooleanValue.FALSE; else if(value.equals("1") || value.equals("true")) return BooleanValue.TRUE; else throw new XPathException("cannot convert string '" + value + "' to boolean");
	public AtomicValue convertTo(int requiredType) throws XPathException {		switch(requiredType) {			case Type.ATOMIC:			case Type.ITEM:			case Type.STRING:				return this;			case Type.BOOLEAN:				return new BooleanValue(value);			case Type.FLOAT:			case Type.DOUBLE:			case Type.DECIMAL:			case Type.NUMBER:				return new DoubleValue(value);			case Type.INTEGER:				return new IntegerValue(value);			default:				throw new XPathException("cannot convert string '" + value + "' to " + requiredType);		}	}