Sedna:将 XML 文件添加到文档中

发布于 2024-09-19 08:22:37 字数 371 浏览 6 评论 0原文

我正在运行一个简单的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

合久必婚 2024-09-26 08:22:37

就像 Ilya 在 Sedna 讨论列表中回答一样:没有一种将多个 xml 文件加载到一个文档中的方法。
但也许你想要的是收藏。您可以通过以下方式创建集合:

 CREATE COLLECTION "mycol"&
 LOAD "1.xml" "1" "mycol"&
 LOAD "2.xml" "2" "mycol"&

之后可以像文档一样查询集合:

collection('mycol')//some-nodes&

请阅读 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:

 CREATE COLLECTION "mycol"&
 LOAD "1.xml" "1" "mycol"&
 LOAD "2.xml" "2" "mycol"&

After that collection may be queried just like document:

collection('mycol')//some-nodes&

Please read Sedna documentation (especially this:
http://modis.ispras.ru/sedna/c-samples.html#loadcol) for more information on
collections.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文