class XmlXpathResolver {

    public String getValue(final String typeQuery, final String xml) {
        XPath xPath = xPathProvider.getXPath();
        InputSource source = new InputSource(new StringReader(xml));
        return evaluate(typeQuery, xPath, source);
    }

}