hxt-xpath-9.1.2.2: The XPath modules for HXT.

Copyright | Copyright (C) 2008 - infinity: Uwe Schmidt
License | MIT
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell98

Text.XML.HXT.XPath.XPathToString

Description

Format an expression or value in tree- or string-representation

Synopsis

- expr2XPathTree :: Expr -> XPathTree
- xPValue2String :: XPathValue -> String
- xPValue2XmlTrees :: XPathValue -> XmlTrees
- nt2XPathTree :: NodeTest -> XPathTree
- pred2XPathTree :: [Expr] -> XPathTree
- toXPathTree :: [NavTree a] -> [NTree a]
- formatXPathTree :: Expr -> String

# Documentation

expr2XPathTree :: Expr -> XPathTree Source #

Format a parsed XPath-expression in tree representation. Text output is done by `formatXmlTree`

xPValue2String :: XPathValue -> String Source #

Format a XPath-value in string representation. Text output is done by `formatXmlTree` for node-sets (trees), all other values are represented as strings.

xPValue2XmlTrees :: XPathValue -> XmlTrees Source #

Convert a a XPath-value into XmlTrees.

nt2XPathTree :: NodeTest -> XPathTree Source #

pred2XPathTree :: [Expr] -> XPathTree Source #

toXPathTree :: [NavTree a] -> [NTree a] Source #

Convert an navigable tree in a xmltree

formatXPathTree :: Expr -> String Source #