public static List<String> getAttributes(String content, String xPath) throws IOException, XPathExpressionException, ParserConfigurationException { Assert.isValidString(content); Assert.isValidString(xPath); final NodeList nodes = DomTools.getAsNodes(content, xPath); final List<String> result = newArrayList(); for (int index = 0; index < nodes.getLength(); ++index) { final Node current = nodes.item(index); final String recipeUrl = current.getNodeValue(); result.add(recipeUrl); } return result; }