XTiSP provides an extended notation of XPath for efficient querying. We write
`xpath1` before `xpath2`
to query elements which satisfy xpath1, which do not satisfy xpath2 and which do not follow an element satisfying xpath2. A future version of XTiSP may support the automatic insertion of 'before' notation using the schema information of inputs.
Suppose that the input XML is r_and_j.xml by Jon Bosak. An XTiSP program
<HTML> [
<HEAD> [ `PLAY/TITLE` before `PLAY/FM` ];
<BODY> [
<PRE> [ `PLAY/FM` before `PLAY/PERSONAE` ]
]
]
returns the same result as the example for XPath querying. This program is more efficient than that because it can output </HEAD><BODY> on reading <FM> which is a child of PLAY element.
Last modified:2006/06/11 00:36:31
Keyword(s):
References:[TabTree]
Keyword(s):
References:[TabTree]