Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- (.@) :: FromXML a => [Node] -> Text -> Either String a
- (.@?) :: FromXML a => [Node] -> Text -> Either String (Maybe a)
- (@=) :: ToXML a => Name -> a -> XML
- (@@=) :: ToText a => Name -> a -> XML
- decodeXML :: FromXML a => LazyByteString -> Either String a
- encodeXML :: ToElement a => a -> LazyByteString
- class FromXML a where
- class ToElement a where
- maybeElement :: ToElement a => a -> Maybe Element
- data XML
- listXMLNodes :: XML -> [Node]
- listXMLAttributes :: XML -> [(Name, Text)]
- class ToXML a where
- parseXMLList :: FromXML a => Text -> [Node] -> Either String [a]
- parseXMLText :: FromText a => String -> [Node] -> Either String a
- toXMLList :: (IsList a, ToXML (Item a)) => Name -> a -> XML
- toXMLText :: ToText a => a -> XML
- mkElement :: ToXML a => Name -> a -> Element
- withContent :: String -> [Node] -> Either String (Maybe Text)
- findElement :: Text -> [Node] -> Either String [Node]
- firstElement :: Text -> [Node] -> Either String [Node]
- childNodesOf :: Text -> Node -> Maybe [Node]
- childrenOf :: Element -> [Node]
- localName :: Node -> Maybe Text
- rootElementName :: LazyByteString -> Maybe Text
- missingElement :: Text -> [Node] -> Maybe a -> Either String a
Documentation
encodeXML :: ToElement a => a -> LazyByteString Source #
class FromXML a where Source #
Instances
FromXML Bool Source # | |
FromXML Char Source # | |
FromXML Double Source # | |
FromXML Int Source # | |
FromXML Integer Source # | |
FromXML Natural Source # | |
FromXML ByteString Source # | |
Defined in Network.AWS.Data.XML | |
FromXML Text Source # | |
FromXML AWSTime Source # | |
FromXML BasicTime Source # | |
FromXML ISO8601 Source # | |
FromXML RFC822 Source # | |
FromXML Nat Source # | |
FromXML Base64 Source # | |
FromXML Region Source # | |
FromXML AuthEnv Source # | |
FromXML SessionToken Source # | |
Defined in Network.AWS.Types | |
FromXML SecretKey Source # | |
FromXML AccessKey Source # | |
FromXML RequestId Source # | |
FromXML ErrorMessage Source # | |
Defined in Network.AWS.Types | |
FromXML ErrorCode Source # | |
FromXML Abbrev Source # | |
FromXML [Node] Source # | |
FromXML a => FromXML (Maybe a) Source # | |
FromXML a => FromXML (Sensitive a) Source # | |
maybeElement :: ToElement a => a -> Maybe Element Source #
Convert to an Element
, only if the resulting element contains > 0
nodes.
Provides a way to make the operators for ToXML instance declaration be consistent WRT to single nodes or lists of nodes.
listXMLNodes :: XML -> [Node] Source #
Instances
ToXML Bool Source # | |
ToXML Double Source # | |
ToXML Int Source # | |
ToXML Integer Source # | |
ToXML Natural Source # | |
ToXML ByteString Source # | |
Defined in Network.AWS.Data.XML toXML :: ByteString -> XML Source # | |
ToXML Text Source # | |
ToXML XML Source # | |
ToXML AWSTime Source # | |
ToXML BasicTime Source # | |
ToXML ISO8601 Source # | |
ToXML RFC822 Source # | |
ToXML Nat Source # | |
ToXML Base64 Source # | |
ToXML Region Source # | |
ToXML SessionToken Source # | |
Defined in Network.AWS.Types toXML :: SessionToken -> XML Source # | |
ToXML SecretKey Source # | |
ToXML AccessKey Source # | |
ToXML a => ToXML (Maybe a) Source # | |
ToXML a => ToXML (Sensitive a) Source # | |
findElement :: Text -> [Node] -> Either String [Node] Source #
Find a specific named NodeElement, at the current depth in the node tree.
Fails if absent.
firstElement :: Text -> [Node] -> Either String [Node] Source #
Find the first specific named NodeElement, at any depth in the node tree.
Fails if absent.
childrenOf :: Element -> [Node] Source #
rootElementName :: LazyByteString -> Maybe Text Source #
An inefficient mechanism for retreiving the root element name of an XML document.