XmlException | Data at the root level is invalid


#1

I think I've found a bug with the XPathOnUrl formula.
I get the message"

Exception: XmlException
Message: Data at the root level is invalid. Line 1, position 1.

This is my formula:
=XPathOnUrl("https://www.jobbird.com/nl/vacatures-in-groningen/","//*[@id='related-info']",,"html")

Could somebody help me with this?


#2

I've found the solution already.
The example is wrong on this page: https://seotoolsforexcel.com/xpathonurl/

In the line you can copy, there a 2 commas before "html")
In the gif image you see 3 ;
So you should not copy the line, but look at the image.


#3

Thanks for spotting this, I've updated the website with an additional comma. We've added Intellisense to the regular Seotools functions which is useful for situations like this: