怎样应用xQuery

5 views
Skip to first unread message

headline(涂鸣)

unread,
Oct 10, 2008, 4:38:22 AM10/10/08
to TopLanguage
请问,怎样应用xQuery来查询xml中的数据?
C/C++, 或者java或者.net下有支持么?项目很急,大家帮帮忙啊,谢谢!

莫华枫

unread,
Oct 10, 2008, 5:13:26 AM10/10/08
to pon...@googlegroups.com
java有不少xmldb实现支持xquery。C/C++也有很多,但.net至今没有怎么看到。
w3c网站上有各种实现的列表:http://www.w3.org/XML/Query/#implementations。可以从中选取一个使用。也可以参考wiki的相应条目。
至于xquery的具体使用,gigapedia上搜索《xQuery》或者《XQuery from the Experts》等书。w3c网站上有规范,只是学起来费劲。

2008/10/10 headline(涂鸣) <luckhe...@gmail.com>

请问,怎样应用xQuery来查询xml中的数据?
C/C++, 或者java或者.net下有支持么?项目很急,大家帮帮忙啊,谢谢!

赵明

unread,
Oct 10, 2008, 9:03:48 AM10/10/08
to pon...@googlegroups.com
senda DB XML 支持大部分的XQuery,而且是c++的。

2008/10/10 莫华枫 <longsh...@gmail.com>

pongba

unread,
Oct 10, 2008, 10:00:42 AM10/10/08
to pon...@googlegroups.com
貌似 google 一下漫天都是嘛

2008/10/10 headline(涂鸣) <luckhe...@gmail.com>

请问,怎样应用xQuery来查询xml中的数据?
C/C++, 或者java或者.net下有支持么?项目很急,大家帮帮忙啊,谢谢!

headline(涂鸣)

unread,
Oct 10, 2008, 10:52:22 AM10/10/08
to TopLanguage
呵呵,谢了各位,我是看有些开源的实现,怕它们可靠性不高

On 10月10日, 下午5时13分, "莫华枫" <longshank...@gmail.com> wrote:
> java有不少xmldb实现支持xquery。C/C++也有很多,但.net <http://xn--gqq.net>至今没有怎么看到。
> w3c网站上有各种实现的列表:http://www.w3.org/XML/Query/#implementations。<http://www.w3.org/XML/Query/#implementations%E3%80%82>
> 可以从中选取一个使用。也可以参考wiki的相应条目。
> 至于xquery的具体使用,gigapedia上搜索《xQuery》或者《XQuery from the
> Experts》等书。w3c网站上有规范,只是学起来费劲。
>
> 2008/10/10 headline(涂鸣) <luckheadl...@gmail.com>
>
> > 请问,怎样应用xQuery来查询xml中的数据?
> > C/C++, 或者java或者.net <http://xn--1nu597d.net>下有支持么?项目很急,大家帮帮忙啊,谢谢!
>
> --
> 反者道之动,弱者道之用
> m...@seaskysh.com
> longshank...@gmail.comhttp://blog.csdn.net/longshanks/

何源

unread,
Oct 12, 2008, 10:13:48 PM10/12/08
to TopLanguage
> 呵呵,谢了各位,我是看有些开源的实现,怕它们可靠性不高

不要担心开源产品,很可靠的。以前作了一个项目使用的Oracle DBXML。很好用。下面是当时项目文档中XML开发库的说明:
------------------
项目有关的XML工具中最重要的便是Berkely DBXML(BDB),我们使用的原生的XML存储数据库。

DBXML使用了大量优秀的工具来实现,其中数据存储使用Berkely DB,XML解析使用XercesC,XPath的实现使用
Pathan(2.3以前),XQilla(2.3以后)。

关于这几个库的说明:
1.Xerces-C++ is a validating XML parser written in a portable subset
of C++. Xerces-C++ makes it easy to give your application the ability
to read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents.
2.Pathan is a open source library which allows developers using
Xerces-
C to parse and evaluate XPath expressions for XML node selection.
3.XQilla is an XQuery and XPath 2 library and command line utility
written in C++ , implemented on top of the Xerces-C. XQilla is
originally based on an open source project called Pathan, that was
hosted by Decisionsoft and implemented XPath 2. However, XQilla has
been developed and improved considerably from the Pathan code base.
4.Xalan is an XSLT processor for transforming XML documents into HTML,
text, or other XML document types
---------------------------

何源

unread,
Oct 12, 2008, 10:15:47 PM10/12/08
to TopLanguage
在XML开源软件中还有一支,那就是来自MIT的xmlsoft.org。其中最著名的libxml2和基于libxml2的libxslt被应用到
gnome上。这些都是C的API包,在此基础上有C++绑定,PHP绑定,perl绑定等等。
Reply all
Reply to author
Forward
0 new messages