|
Text.XML.HXT.Arrow.XPathSimple | Portability | portable | Stability | experimental | Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
|
|
|
Description |
XPath selection for simple XPath expressions with list arrows
instead of navigable trees.
It is recommended, that this module is imported qualified,
e.g like Text.XML.HXT.Arrow.XPathSimple as XS.
The arrows defined in this module have the same
functionality as the functions in Text.XML.HXT.Arrow.XPath.
The computation model in XPath is a navigable tree,
that means a tree which can be traversed in arbitrary directions,
not only from the root to the leafs. Sometimes this model
leads to inefficient XPath processing for simple queries, which
only need a top down tree traversal.
When evaluating an XPath expression with these functions, first an attempt is made
to map the XPath expression to a pure arrow. If this is possible
due to the simplicity of the XPath expressions, the result is computed
directly, else the query is processed by the corresponding
function in Text.XML.HXT.Arrow.XPath.
The simple evaluation is possible, when in the XPath expression
only the top down axes (self, child, descendant, descendant or self) are used,
when no built-in functions concerning the position of a node are used,
and no comparison of nodes e.g. in node set union is required.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Same Functionality as Text.XML.HXT.Arrow.XPath.getXPathTreesInDoc
|
|
|
Same Functionality as Text.XML.HXT.Arrow.XPath.getXPathTreesInDocWithNsEnv
|
|
|
Same Functionality as Text.XML.HXT.Arrow.XPath.getXPathTrees
|
|
|
Same Functionality as Text.XML.HXT.Arrow.XPath.getXPathTreesWithNsEnv
|
|
|
|
|
The xpath interpreter for simple xpath expressions.
In case of a too complicated or illegal xpath expression an error
node is returned, else the list of selected XML trees
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
equalNodeSet :: Eq a => [a] -> [a] -> [a] | Source |
|
|
Produced by Haddock version 2.4.2 |