extract method for finding the first href in xml with xpath query