ScanR: prevent XML values from being truncated

As with f844041, this defers value parsing to the endElement(...) method
in the SAX handler instead of doing the parsing in the characters(...)
method.