With the rapid spread of XML documents over the Internet, many XML query languages are proposed to query XML documents to extract and restructure information. XQuery and XPath become the most promising standard. However, XML document is a tree structure by nature. XPath can only address a path rather than a subtree so it makes queries lengthy and difficult to parse and optimize. In this paper, we introduce a new query language called XTQ and discuss its design issues. XTQ is based on logic XTree, an extension of XPath, which overcomes the limitations of XPath and XQuery. Using XTree expression, XTQ can exhibit a compact and convenient programming style by making a pattern matching query over tree fragments of XML document. To make XTQ a practical language, we introduce many new features into it based on previous works. The major parts of these features, including query, conditions and constructions, are introduced in this paper.
[1]
CeriStefano,et al.
Comparative analysis of five XML query languages
,
2000
.
[2]
James Clark,et al.
XSL Transformations (XSLT) Version 1.0
,
1999
.
[3]
Tok Wang Ling,et al.
XTree for Declarative XML Querying
,
2004,
DASFAA.
[4]
Alin Deutsch,et al.
XML-QL: A Query Language for XML
,
1998
.
[5]
Daniela Florescu,et al.
Quilt: An XML Query Language for Heterogeneous Data Sources
,
2000,
WebDB.
[6]
Stefano Ceri,et al.
Comparative analysis of five XML query languages
,
1999,
SGMD.
[7]
Scott Boag,et al.
XQuery 1.0 : An XML Query Language
,
2007
.
[8]
Benjamin C. Pierce,et al.
XDuce: A statically typed XML processing language
,
2003,
TOIT.