@Test public void testResolveXpath_Attribute() throws Exception { ConfiguredXpathNodeQuery query = init(create(), " Document doc = XmlHelper.createDocument(XML); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(XML); Node result = query.resolveXpath(doc, new XPath(), query.createXpathQuery(msg)); assertNotNull(result); }
@Override public Node resolveXpath(Document doc, XPath xpath, String expression) throws Exception { return XpathQueryHelper.resolveSingleNode(doc, xpath, expression, allowEmptyResults()); }
ConfiguredXpathNodeQuery extends ConfiguredXpathQueryImpl implements XpathObjectQuery { @Override public Node resolveXpath(Document doc, XPath xpath, String expression) throws Exception { return XpathQueryHelper.resolveSingleNode(doc, xpath, expression, allowEmptyResults()); } }
ConfiguredXpathNodeQuery extends ConfiguredXpathQueryImpl implements XpathObjectQuery { @Override public Node resolveXpath(Document doc, XPath xpath, String expression) throws Exception { return XpathQueryHelper.resolveSingleNode(doc, xpath, expression, allowEmptyResults()); } ConfiguredXpathNodeQuery();  ConfiguredXpathNodeQuery(String metadataKey, String xpath); }
ConfiguredXpathNodeQuery extends ConfiguredXpathQueryImpl implements XpathObjectQuery { @Override public Node resolveXpath(Document doc, XPath xpath, String expression) throws Exception { return XpathQueryHelper.resolveSingleNode(doc, xpath, expression, allowEmptyResults()); } ConfiguredXpathNodeQuery();  ConfiguredXpathNodeQuery(String metadataKey, String xpath); @Override Node resolveXpath(Document doc, XPath xpath, String expression); }
ConfiguredXpathNodeQuery extends ConfiguredXpathQueryImpl implements XpathObjectQuery { @Override public Node resolveXpath(Document doc, XPath xpath, String expression) throws Exception { return XpathQueryHelper.resolveSingleNode(doc, xpath, expression, allowEmptyResults()); } ConfiguredXpathNodeQuery();  ConfiguredXpathNodeQuery(String metadataKey, String xpath); @Override Node resolveXpath(Document doc, XPath xpath, String expression);  }