else if (xpath.indexOf("id(") >= 0) continue;
Nodes result = input.query(xpath);
Element answer = query.getFirstChildElement("answer");
Nodes expected = new Nodes();
for (int j = 0; j < answer.getChildCount(); j++) {
Node node = answer.getChild(j);
if (node instanceof Text) {
if (!("".equals(node.getValue().trim()))) {
expected.append(node);
}
}
else {
expected.append(node);
}
}
assertEquals("Failed query " + id, expected.size(), result.size());
for (int j = 0; j < result.size(); j++) {
Node expectedNode = expected.get(j);
Node actualNode = result.get(j);
assertEquals(id + " " + expectedNode.toXML() + " " + actualNode.toXML(), expectedNode, actualNode);
}
}
}