This is to get the relative url of the site extension from applicationHost.xdt, using xpath. I will add a comment.