xml-conduit-microlens-0.2.0.0: Lenses and traversals for xml-conduit based on microlens
Copyright(c) 2015-2023 Fumiaki Kinoshita 2023 Marco Zocca
LicenseBSD-style
Maintainerocramz
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.XML.Lens.Micro

Description

 
Synopsis

Documentation

root :: Lens' Document Element Source #

The root element of the document.

named :: CI Text -> Traversal' Element Element Source #

Traverse elements which has the specified *local* name (case-insensitive).

subtree Source #

Arguments

:: (Text -> Bool)

predicate on element name

-> (Text -> Text -> Bool)

predicate on attribute name, value

-> Getting r Element (Maybe Element) 

Isolate a DOM subtree that satisfies the given predicates

node attribute combinators

attrs :: Lens' Element (Map Name Text) Source #

Node attributes

attributeSatisfies Source #

Arguments

:: Name

attribute name

-> (Text -> Bool)

predicate on the value of the attribute

-> Traversal' Element Element 

attributeIs Source #

Arguments

:: Name

attribute name

-> Text

value of the attribute

-> Traversal' Element Element 

remapAttributes Source #

Arguments

:: (Name -> Text -> Maybe (Name, Text))

operate on element attribute (name, value)

-> Getting r Element Element 

Handy for editing HREF targets etc.