I'm trying to find the correct XPath expression to get only URLs from all my documents, whatever the tag is. I'm trying with this one :
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://url
</loc>
<lastmod>2019-08-07T15:01:51+00:00
</lastmod>
</url>
</urlset>
The following expression gives me these results :
//*[contains(.,'http')]//text()
https://url
2019-08-07T15:01:51+00:00
What I'm looking for is to get rid of the second line. I need to be able to get only URLs from any XML file.