Extract a function that extracts xhtml uris as a method