摘要
查询XML数据的技术是XML相关技术研究中的一个重要课题。XPath、XSLT、XQuery三种语言都可以用于对XML数据的查询。本文通过一个实例比较这三种语言在XML查询方法上的差异。其中,XPath是用路径定位XML文档节点,但它不能单独使用;XSLT主要利用模式匹配和XPath定位来完成XML文档的查询;XQuery应用XPath和FLWR表达式进行查询,功能比较强,而且支持多文档查询。
The technique of querying the XML data is one of the important dimensions concerning XML-related technology. XPath, XSLT, XQuery are three languages for querying XML data. This paper shows the differences among the three languages in querying a XML document through an example. XPath is used for locating an XML document's node,but it can't be used by itself. XSLT is used for querying XML documents through template match and XPath location. XQuery uses XPath and FLWR expression for querying XML documents. It's better in function and supports multi-documents querying.
出处
《金陵科技学院学报》
2006年第1期18-22,共5页
Journal of Jinling Institute of Technology
基金
江苏省教育厅高校自然科学研究基金项目(04KJB520075)