Netbeans - Apache Derby:如何导出到 XML?
我有一个用 Netbeans 构建的 Apache Derby 数据库。我想知道是否有办法将表内容导出为 xml。
例如:
`<employee>
<name="Kal"/>
<ID=10/>
<employee/>` where employee is table name, name and ID just attributes
I have an Apache Derby database built in Netbeans. I'm wondering if there is anyway to export the table contents as xml.
for example:
`<employee>
<name="Kal"/>
<ID=10/>
<employee/>` where employee is table name, name and ID just attributes
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您有几个(免费)选项
所有这些都涉及编写一些 Java 代码。不幸的是,Derby 中没有用于 XML 导出的内置功能。它仅支持 CSV 格式。祝你好运!
You have several (free) options
All of these involve writing some Java code. Unfortunately, there is no built in functionality in Derby for XML export. It only supports a CSV format. Good luck!
不确定是否可以通过这种方式执行 XML,但这也许会提供一个中间步骤:
http://db.apache.org/derby/docs/10.4/tools/ctoolsimport16245.html
这是 Apache 编写的关于如何从德比数据库。
Not sure if you can do XML this way, but perhaps this will provide an intermediate step:
http://db.apache.org/derby/docs/10.4/tools/ctoolsimport16245.html
It's a guide written by Apache on how to import and export data from a Derby db.