You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this time, i have to match against a regex rule to decide wich method should be used (wether it's an attribute xpath query or not). I think the getElements() method should also match against attribute xpath queries, this would be a fine improvement.
if (query.matches("(.*/@.*)")) {
String result = Xsoup.compile(query).evaluate(document).get();
matches.add(result);
} else {
Elements results = Xsoup.compile(query).evaluate(document).getElements();
// following more code wich adds the results to the matches list...
}
Best regards
The text was updated successfully, but these errors were encountered:
At this time, i have to match against a regex rule to decide wich method should be used (wether it's an attribute xpath query or not). I think the getElements() method should also match against attribute xpath queries, this would be a fine improvement.
Best regards
The text was updated successfully, but these errors were encountered: