changed to xpath for capabilities-parsing.