Safe Haskell | None |
---|
Text.XML.Selector
Description
This module has query functions for traversing DOM. queryT
, a quasiquote version, is also available in Text.XML.Selector.TH module.
- query :: String -> Axis
- query1 :: String -> Cursor -> Maybe Cursor
- searchTree :: [JQSelector] -> Axis
- showJQ :: [JQSelector] -> String
- byId :: String -> Axis
- byClass :: String -> Axis
- selectorMatch :: JQSelector -> Element -> Bool
- next :: Cursor -> Maybe Cursor
- maybeText :: Text -> Maybe Text
- headm :: [a] -> Maybe a
- queryMatchNode :: String -> Node -> Bool
Documentation
query1 :: String -> Cursor -> Maybe CursorSource
Return Just (the first element of query results). If no element matches, it returns Nothing.
searchTree :: [JQSelector] -> AxisSource
showJQ :: [JQSelector] -> StringSource
Show a parsed selector. (parseJQ . showJQ) == id
selectorMatch :: JQSelector -> Element -> BoolSource
Return if an element matches a selector
queryMatchNode :: String -> Node -> BoolSource
Return if a node matches a selector given by string |Only first token is used (i.e. no hierarchy is enabled.)