Copyright | (c) riskbook 2020 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- strAttr :: a -> String -> (a, CFilter i)
- getVals :: Text -> [Content Posn] -> [Text]
- isVal :: Text -> Text -> [Content Posn] -> Bool
- getText :: Content i -> Text
- getText_ :: [Content i] -> Text
- txtpat :: Text -> Content Posn -> Text
- xtractp :: (Text -> Text) -> Text -> Content i -> Bool
- matchPatterns :: Content i -> [Text] -> Bool
- mread :: Read a => Text -> Maybe a
- mattr :: Show a => b -> Maybe a -> [(b, CFilter i)]
- mattr' :: a -> Maybe String -> [(a, CFilter i)]
- literal :: String -> CFilter i
- noelem :: Content Posn
- lookupAttr :: String -> [Attribute] -> Maybe String
- class FromXML a where
- class ToXML a where
Documentation
isVal :: Text -> Text -> [Content Posn] -> Bool Source #
Queries xml for specific value
isVal str = any (== str) . getVals
:: Text | xtract-like pattern to match |
-> Content Posn | message being processed |
-> Text | result of extraction |
Extract text from `Content Posn' with supplied pattern