* @throws SparqlException If there was a consistency error in the parsed data.
* @throws XMLStreamException If there was an error accessing the XML.
*/
RDFNode parseValue() throws SparqlException, XMLStreamException {
if (reader.nextTag() != START_ELEMENT) throw new SparqlException("No value in variable binding");
Element elt = Element.valueOf(reader.getLocalName().toUpperCase());
try {
switch (elt) {
case URI:
if (reader.next() != CHARACTERS) throw new SparqlException("Unexpected data in URI binding");
return new NamedNodeImpl(new URI(reader.getText()));