Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utility functions related to XML parsing.
Namespaces
saml2pName :: Text -> Name Source #
saml2pName
name
constructs a Name
for name
in the
urn:oasis:names:tc:SAML:2.0:protocol namespace.
xencName :: Text -> Name Source #
xencName
name
constructs a Name
for name
in the
http://www.w3.org/2001/04/xmlenc# namespace.
dsName :: Text -> Name Source #
dsName
name
constructs a Name
for name
in the
http://www.w3.org/2000/09/xmldsig# namespace.
Utility functions
toMaybeText :: [Text] -> Maybe Text Source #
toMaybeText
xs
returns Nothing
if xs
is the empty list, or
the result of concatenating xs
wrapped in Just
otherwise.
parseUTCTime :: MonadFail m => Text -> m UTCTime Source #
parseUTCTime
text
parses text
into a UTCTime
value.
XML parsing
class FromXML a where Source #
A class of types which can be parsed from XML.