for (int i = 0; i < doc2Queries.size(); i++) {
Element query = (Element) doc2Queries.get(i);
String xpath = query.getFirstChildElement("syntax").getValue();
String id = query.getAttributeValue("id");
Nodes result = html.query(xpath, context);
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) {