XTiSP programs can query elements designated by some XPath expressions. Currently, XTiSP supports only forward and relative paths: forward means it does not contain backward axis such as parent and ancestor; relative means the program select a sequence of nodes relative to a current node, which is initially the root node of the input.
In XTiSP programs, each XPath expression is enclosed in back-quotation marks (`). Suppose that the input XML is r_and_j.xml by Jon Bosak. A program
<HTML><HEAD><TITLE>The Tragedy of Romeo and Juliet</TITLE>
</HEAD><BODY><PRE><FM> ... </FM></PRE></BODY></HTML>
Note that the obtained stream processing program is not efficient since it cannot print '</HEAD><BODY>' until the whole children of the PLAY element have been read. This is because the program does not use the schema information of the input. In order to make it efficient, we use before notation mentioned at the next section.
Last modified:2006/06/11 00:33:12
Keyword(s):
References:[TabTree]
Keyword(s):
References:[TabTree]