final String speedExpression = "//" + TAG_SPEED;
NodeList nodeList = null;
NodeList speedList = null;
try {
DocumentBuilder builder = factory.newDocumentBuilder();
<BUG>Document document = builder.parse(file);
</BUG>
nodeList = (NodeList) xPath.compile(expression)
.evaluate(document, XPathConstants.NODESET);
speedList = (NodeList) xPath.compile(speedExpression)

final String speedExpression = "//" + TAG_SPEED;
NodeList nodeList = null;
NodeList speedList = null;
try {
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(gpxFile);
nodeList = (NodeList) xPath.compile(expression)
.evaluate(document, XPathConstants.NODESET);
speedList = (NodeList) xPath.compile(speedExpression)
