public List<String> getStrings(String xpath)
    {
        List<String> list = new ArrayList<>();
        
        try
        {
            XPathExpression expr = xPath.compile(xpath);
            Object result = expr.evaluate(document, XPathConstants.NODESET);
            if (result != null)
            {
                NodeList nodeList = (NodeList) result;
                for (int i = 0; i < nodeList.getLength(); i++)
                {
                    list.add(nodeList.item(i).getNodeValue());
                }
            }
        }
        catch (XPathExpressionException e)
        {
            e.printStackTrace();
            return null;
        }
        
        return list;
    }