return (char) Integer.parseInt(buf.substring(1), 16); } else return (char) Integer.parseInt(buf);
charNumber = Integer.parseInt(buf.substring(1), 16); } else { charNumber = Integer.parseInt(buf); } if (charNumber==0) { throw new XPathException("XQST0090 : Character number zero (0) is not allowed."); } return (char)charNumber;
	private final static char expandCharRef(String buf) throws XPathException {		try {			if (buf.length() > 1 && buf.charAt(0) == 'x') {				// Hex				return (char) Integer.parseInt(buf.substring(1), 16);			} else				return (char) Integer.parseInt(buf);		} catch (NumberFormatException e) {			throw new XPathException("Unknown character reference: " + buf);		}	}