- My XML did result valid when passed thru https://www.xml-sitemaps.com/validate-xml-sitemap.html
- Google told me as in initial post above seen: Invalid URL - 2 instances.
- Google went on bragging that the errors happen at Row 1 and presented empty examples.
This actually just means that anywhere inside your XML file, be it row one or 50k, you have an empty
Google isn't able to detect if the tag is empty, broken or invalid. It just likes to throw the error, that's all, no further feedback.
Debugging this issue I also tried just out of curiosity to see what happens if you pass an empty XML file and the results are even worse.
If you pass the following below, Google will tell you there is a missing XML tag.
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"></urlset>
The thing is, the XML tag is pretty much there, nothing is missing at all, it is just not featuring any URL
This tool (Google SC) - while unfortunately an authoritative institution in the world of internet and the one deciding if your site dies or lives - is less than suboptimal. I would expect more from the tool that took the bold path of judging websites, indexing them or not, depending on their criteria. At least, a useful error messaging is expected. Not telling people where the error is, is simply mean and unprofessional.
Anyway, with this, the issue is solved and I hope it helps someone if they get that error.
Do not trust 99% of the XML validators like https://www.xml-sitemaps.com/validate-xml-sitemap.html, as they won't see any error.
Do not trust google either, because it will simply tell you an error happens on wrong line, and it will tell you the wrong cause of the error.
Manually check if you have EMPTY
loc tag anywhere in the XML file. Only google will dare to complain this, but it will not pay off ignoring them since they dictate the faith of websites.