for (Entry<String, String> namespace : this.namespaces.entrySet()) {
xPointerContext.addPrefix(namespace.getKey(), namespace.getValue());
}
// initialize the XPointer handler by parsing the xpointer
XPointer xPointer = XPointerFrameworkParser.parse(xpointer);
xPointer.setLog(this.logger);
// setup components
xPointer.setUp(xPointerContext);
xPointer.setDocumentLocator(this.locator);
// go!
XMLUtils.toSax(urlConnection, xPointer);
} catch (ParseException e) {
// this exception is thrown in case of an invalid xpointer expression