public CharSequence getStringValue() throws XPathException {
switch (currentEvent) {
case TEXT:
case COMMENT:
//return reader.getText();
return new CharSlice(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength());
// -- the latter is more efficient but doesn't work for entity references
case PROCESSING_INSTRUCTION:
String s = reader.getPIData();
// The BEA parser includes the separator space in the value,
// which isn't part of the XPath data model