Sedna:将 XML 文件添加到文档中
我正在运行一个简单的 Sedna 数据库,但有一个小问题。 我有多个 XML 文件,我想将它们全部添加到同一个文档中。这些文件都遵循相同的架构。
LOAD "1.xml" "mydoc"&
LOAD "2.xml" "mydoc"&
LOAD "3.xml" "mydoc"
但我收到以下错误
SEDNA Message: ERROR SE2001
Document with the same name already exists.
Details: tariffs
如何将每个文件添加到现有文档而不删除文档的现有内容?这可能吗?
非常感谢任何帮助。 谢谢
I am running a simple Sedna database but have a small issue.
I have multiple XML files that I want to add all to the same document. The files all follow the same schema.
LOAD "1.xml" "mydoc"&
LOAD "2.xml" "mydoc"&
LOAD "3.xml" "mydoc"
But I get the following error
SEDNA Message: ERROR SE2001
Document with the same name already exists.
Details: tariffs
How can I go about adding each file to the existing document without removing the existing contents of the document? Is this possible?
Any help much appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就像 Ilya 在 Sedna 讨论列表中回答一样:没有一种将多个 xml 文件加载到一个文档中的方法。
但也许你想要的是收藏。您可以通过以下方式创建集合:
之后可以像文档一样查询集合:
请阅读 Sedna 文档(尤其是:
http://modis.ispras.ru/sedna/c-samples.html# loadcol)了解更多信息
收藏。
Just like Ilya answered you in the Sedna discussion list: there is no way to load many xml files into one document.
But perhaps what you want is collection. You can create a collection by:
After that collection may be queried just like document:
Please read Sedna documentation (especially this:
http://modis.ispras.ru/sedna/c-samples.html#loadcol) for more information on
collections.