saml2-web-sso-0.20: Library and example web app for the SAML Web-based SSO profile.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.XML.Util

Synopsis

Documentation

die :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Proxy a -> b -> m c Source #

die' :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Maybe String -> Proxy a -> b -> m c Source #

docToXML' :: XmlTree -> ByteString Source #

This is subtly different from HS.docToXML' and should probably be moved to hsaml2.

xmlToDoc' :: MonadError String m => ByteString -> m XmlTree Source #

This is subtly different from HS.xmlToDoc' and should probably be moved to hsaml2.

stripWhitespace :: Document -> Document Source #

Remove all whitespace in the text nodes of the xml document.

mergeContentSiblings :: Document -> Document Source #

if two content nodes are next to each other, concatenate them into one. NB: if you call stripWhitespace it should be called *after* mergeContentSiblings, or some two words will be merged into one.