问题
Referencing the csv module, how is the following data downloaded?
nicholas@mordor:~/flwor/covid$
nicholas@mordor:~/flwor/covid$ basex uri.xq
Stopped at /home/nicholas/flwor/covid/uri.xq, 3/13:
[XPST0081] No namespace declared for 'doc:csv'.
nicholas@mordor:~/flwor/covid$
nicholas@mordor:~/flwor/covid$ cat uri.xq
xquery version "3.1";
let $csv := doc:csv('http://www.bccdc.ca/Health-Info-Site/Documents/BCCDC_COVID19_Dashboard_Lab_Information.csv') as $data
return $data
nicholas@mordor:~/flwor/covid$
which of the following:
csv:parse csv:serialize csv:doc
is best used to grab this data?
and is there a missing import statement for the namespace?
with powershell:
how to get the column headers for CSV data with Powershell?
来源:https://stackoverflow.com/questions/65325993/basex-error-no-namespace-declared-for-doccsv