@Test public void testGetNodeList() throws XPathExpressionException { String xPath = " NodeList nodeList = sut.getNodeList(c32Doc, xPath); assertEquals(176, nodeList.getLength()); }
@Override public NodeList getNodeList(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { xPathExpr = setXpathArguments(xPathExpr, arguments); final XPath xpath = xpath(); NodeList nodeList; try { nodeList = (NodeList) xpath.evaluate(xPathExpr, xmlDocument, XPathConstants.NODESET); } catch (final XPathExpressionException e) { throw new DocumentAccessorException(e); } return nodeList; }
DocumentAccessorImpl implements DocumentAccessor { @Override public NodeList getNodeList(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { xPathExpr = setXpathArguments(xPathExpr, arguments); final XPath xpath = xpath(); NodeList nodeList; try { nodeList = (NodeList) xpath.evaluate(xPathExpr, xmlDocument, XPathConstants.NODESET); } catch (final XPathExpressionException e) { throw new DocumentAccessorException(e); } return nodeList; } }
DocumentAccessorImpl implements DocumentAccessor { @Override public NodeList getNodeList(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { xPathExpr = setXpathArguments(xPathExpr, arguments); final XPath xpath = xpath(); NodeList nodeList; try { nodeList = (NodeList) xpath.evaluate(xPathExpr, xmlDocument, XPathConstants.NODESET); } catch (final XPathExpressionException e) { throw new DocumentAccessorException(e); } return nodeList; }  }
DocumentAccessorImpl implements DocumentAccessor { @Override public NodeList getNodeList(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { xPathExpr = setXpathArguments(xPathExpr, arguments); final XPath xpath = xpath(); NodeList nodeList; try { nodeList = (NodeList) xpath.evaluate(xPathExpr, xmlDocument, XPathConstants.NODESET); } catch (final XPathExpressionException e) { throw new DocumentAccessorException(e); } return nodeList; }  @SuppressWarnings("unchecked") @Override Document addingStylesheet(Document doc,
			String xslHref); @Override Element getElement(Document xmlDocument, String xPathExpr,
			String... arguments); @Override Node getNode(Document xmlDocument, String xPathExpr,
			String... arguments); @Override NodeList getNodeList(Document xmlDocument, String xPathExpr,
			String... arguments); @Override ProcessingInstruction getProcessingInstruction(Document xmlDocument,
			String xPathExpr, String... arguments); }
DocumentAccessorImpl implements DocumentAccessor { @Override public NodeList getNodeList(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { xPathExpr = setXpathArguments(xPathExpr, arguments); final XPath xpath = xpath(); NodeList nodeList; try { nodeList = (NodeList) xpath.evaluate(xPathExpr, xmlDocument, XPathConstants.NODESET); } catch (final XPathExpressionException e) { throw new DocumentAccessorException(e); } return nodeList; }  @SuppressWarnings("unchecked") @Override Document addingStylesheet(Document doc,
			String xslHref); @Override Element getElement(Document xmlDocument, String xPathExpr,
			String... arguments); @Override Node getNode(Document xmlDocument, String xPathExpr,
			String... arguments); @Override NodeList getNodeList(Document xmlDocument, String xPathExpr,
			String... arguments); @Override ProcessingInstruction getProcessingInstruction(Document xmlDocument,
			String xPathExpr, String... arguments);  }