我有以下 XQuery 命令来检索 qconsole 上的文档
declare namespace xsi = "http://www.w3.org/2001/XMLSchema-instance";
(/record[@xsi:noNamespaceSchemaLocation eq 'http://foobar.xsd']);
我尝试通过 mlcp 导出数据,但出现语法错误。
mlcp.sh export -host xxx.xxx.xxx.xxx -port 8000 -username ####-password ####### \
-mode local -output_file_path ./mlcp_export -database ##### \
-path_namespace 'xsi,http://www.w3.org/2001/XMLSchema-instance' \
-document_selector '/record[@xsi:noNamespaceSchemaLocation eq 'http://foobar.xsd']'
23/08/15 17:41:09 ERROR contentpump.LocalJobRunner: Error getting input splits:
23/08/15 17:41:09 ERROR contentpump.LocalJobRunner: com.marklogic.xcc.exceptions.XQueryException: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Colon_, expecting Comma_ or Rbrack_ or SemiColon_
有人可以告诉我我哪里做错了吗?
提前致谢!
在谓词中使用双引号解决了语法错误。