Thank you Dirk. I am new to XQuery and actually learning it along with BaseX.
Yes I created a database solely for the purpose of reading CSV files (there is only 3 of them). I added these files to the database using CSV parse via GUI. The files are represented in GUI as XML-like structures. I understand they are converted to XML.
I am confusing the notion of a DB here. The documentation says that fn:doc("db/path/to/doc.xml") returns the document at the location path/to/docs in the database db. So does it actually read it from disk? Then it is understandable why BaseX complains. How should I refer to the one of these XML-like structures that I got after conversion? I can query them all at once with //UserPhone, but how to refer to only one?
-- Roman