@Override
  public List<Node> selectNodes(
      String xPathExpression, String comparisonXPathExpression, boolean removeDuplicates) {

    return SAXReaderImpl.toNewNodes(
        _node.selectNodes(xPathExpression, comparisonXPathExpression, removeDuplicates));
  }
  @Override
  public Object selectObject(String xPathExpression) {
    Object obj = _node.selectObject(xPathExpression);

    if (obj == null) {
      return null;
    } else if (obj instanceof List<?>) {
      return SAXReaderImpl.toNewNodes((List<org.dom4j.Node>) obj);
    } else {
      return obj;
    }
  }
  @Override
  public List<Node> selectNodes(String xPathExpression, String comparisonXPathExpression) {

    return SAXReaderImpl.toNewNodes(_node.selectNodes(xPathExpression, comparisonXPathExpression));
  }
Example #4
0
 public List<Node> content() {
   return SAXReaderImpl.toNewNodes(_branch.content());
 }