marklogic 6 - 如何将 xml 文档从共享路径位置加载到 marklogic DB
marklogic 6 - How to load the xml document from share path location to marklogic DB
我已经尝试使用下面提到的 Xquery 将 XML 文件从本地系统加载到 MarkLogic 数据库:
xdmp:document-load("D:/scrape/100065.xml",
<options xmlns="xdmp:document-load">
<uri>/April/12/100065.xml</uri>
<encoding>auto</encoding>
</options>)
如何提供共享路径位置而不是本地系统路径?
注意两点:
- 安装 MarkLogic 的路径必须可见。也就是说,如果您在远程服务器上加载,请记住 MarkLogic 将查看该服务器上的文件系统
- Windows 路径 as seen in the first and third examples 使用反斜杠。
XQuery:
xdmp:document-load("D:\scrape0065.xml",
<options xmlns="xdmp:document-load">
<uri>/April/12/100065.xml</uri>
<encoding>auto</encoding>
</options>
)
我已经尝试使用下面提到的 Xquery 将 XML 文件从本地系统加载到 MarkLogic 数据库:
xdmp:document-load("D:/scrape/100065.xml",
<options xmlns="xdmp:document-load">
<uri>/April/12/100065.xml</uri>
<encoding>auto</encoding>
</options>)
如何提供共享路径位置而不是本地系统路径?
注意两点:
- 安装 MarkLogic 的路径必须可见。也就是说,如果您在远程服务器上加载,请记住 MarkLogic 将查看该服务器上的文件系统
- Windows 路径 as seen in the first and third examples 使用反斜杠。
XQuery:
xdmp:document-load("D:\scrape0065.xml",
<options xmlns="xdmp:document-load">
<uri>/April/12/100065.xml</uri>
<encoding>auto</encoding>
</options>
)