amazonka-core-1.6.1: Core data types and functionality for Amazonka libraries.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Data.XML

Description

 
Synopsis

Documentation

(.@) :: FromXML a => [Node] -> Text -> Either String a infixl 7 Source #

(.@?) :: FromXML a => [Node] -> Text -> Either String (Maybe a) infixl 7 Source #

(@=) :: ToXML a => Name -> a -> XML infixr 7 Source #

(@@=) :: ToText a => Name -> a -> XML infixr 7 Source #

class FromXML a where Source #

Methods

parseXML :: [Node] -> Either String a Source #

Instances
FromXML Bool Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Char Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Double Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Int Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Integer Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Natural Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML ByteString Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML Text Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML AWSTime Source # 
Instance details

Defined in Network.AWS.Data.Time

FromXML BasicTime Source # 
Instance details

Defined in Network.AWS.Data.Time

FromXML ISO8601 Source # 
Instance details

Defined in Network.AWS.Data.Time

FromXML RFC822 Source # 
Instance details

Defined in Network.AWS.Data.Time

FromXML Nat Source # 
Instance details

Defined in Network.AWS.Data.Numeric

FromXML Base64 Source # 
Instance details

Defined in Network.AWS.Data.Base64

FromXML Region Source # 
Instance details

Defined in Network.AWS.Types

FromXML AuthEnv Source # 
Instance details

Defined in Network.AWS.Types

FromXML SessionToken Source # 
Instance details

Defined in Network.AWS.Types

FromXML SecretKey Source # 
Instance details

Defined in Network.AWS.Types

FromXML AccessKey Source # 
Instance details

Defined in Network.AWS.Types

FromXML RequestId Source # 
Instance details

Defined in Network.AWS.Types

FromXML ErrorMessage Source # 
Instance details

Defined in Network.AWS.Types

FromXML ErrorCode Source # 
Instance details

Defined in Network.AWS.Types

FromXML Abbrev Source # 
Instance details

Defined in Network.AWS.Types

FromXML [Node] Source # 
Instance details

Defined in Network.AWS.Data.XML

FromXML a => FromXML (Maybe a) Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

parseXML :: [Node] -> Either String (Maybe a) Source #

FromXML a => FromXML (Sensitive a) Source # 
Instance details

Defined in Network.AWS.Data.Sensitive

class ToElement a where Source #

Methods

toElement :: a -> Element Source #

Instances
ToElement Element Source # 
Instance details

Defined in Network.AWS.Data.XML

maybeElement :: ToElement a => a -> Maybe Element Source #

Convert to an Element, only if the resulting element contains > 0 nodes.

data XML Source #

Provides a way to make the operators for ToXML instance declaration be consistent WRT to single nodes or lists of nodes.

Constructors

XNull 
XAttr Name Text 
XOne Node 
XMany [(Name, Text)] [Node] 
Instances
Show XML Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

showsPrec :: Int -> XML -> ShowS #

show :: XML -> String #

showList :: [XML] -> ShowS #

Semigroup XML Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

(<>) :: XML -> XML -> XML #

sconcat :: NonEmpty XML -> XML #

stimes :: Integral b => b -> XML -> XML #

Monoid XML Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

mempty :: XML #

mappend :: XML -> XML -> XML #

mconcat :: [XML] -> XML #

ToXML XML Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: XML -> XML Source #

class ToXML a where Source #

Methods

toXML :: a -> XML Source #

Instances
ToXML Bool Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Bool -> XML Source #

ToXML Double Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Double -> XML Source #

ToXML Int Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Int -> XML Source #

ToXML Integer Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Integer -> XML Source #

ToXML Natural Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Natural -> XML Source #

ToXML ByteString Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: ByteString -> XML Source #

ToXML Text Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Text -> XML Source #

ToXML XML Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: XML -> XML Source #

ToXML AWSTime Source # 
Instance details

Defined in Network.AWS.Data.Time

Methods

toXML :: AWSTime -> XML Source #

ToXML BasicTime Source # 
Instance details

Defined in Network.AWS.Data.Time

Methods

toXML :: BasicTime -> XML Source #

ToXML ISO8601 Source # 
Instance details

Defined in Network.AWS.Data.Time

Methods

toXML :: ISO8601 -> XML Source #

ToXML RFC822 Source # 
Instance details

Defined in Network.AWS.Data.Time

Methods

toXML :: RFC822 -> XML Source #

ToXML Nat Source # 
Instance details

Defined in Network.AWS.Data.Numeric

Methods

toXML :: Nat -> XML Source #

ToXML Base64 Source # 
Instance details

Defined in Network.AWS.Data.Base64

Methods

toXML :: Base64 -> XML Source #

ToXML Region Source # 
Instance details

Defined in Network.AWS.Types

Methods

toXML :: Region -> XML Source #

ToXML SessionToken Source # 
Instance details

Defined in Network.AWS.Types

ToXML SecretKey Source # 
Instance details

Defined in Network.AWS.Types

Methods

toXML :: SecretKey -> XML Source #

ToXML AccessKey Source # 
Instance details

Defined in Network.AWS.Types

Methods

toXML :: AccessKey -> XML Source #

ToXML a => ToXML (Maybe a) Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: Maybe a -> XML Source #

ToXML a => ToXML (Sensitive a) Source # 
Instance details

Defined in Network.AWS.Data.Sensitive

Methods

toXML :: Sensitive a -> XML Source #

toXMLList :: (IsList a, ToXML (Item a)) => Name -> a -> XML Source #

toXMLText :: ToText a => a -> XML 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.

rootElementName :: LazyByteString -> Maybe Text Source #

An inefficient mechanism for retreiving the root element name of an XML document.