choose proper revisions from xml api