| Copyright | (c) 2015-2023 Fumiaki Kinoshita 2023 Marco Zocca |
|---|---|
| License | BSD-style |
| Maintainer | ocramz |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Text.XML.Lens.Micro
Contents
Description
Synopsis
- root :: Lens' Document Element
- epilogue :: Lens' Document [Miscellaneous]
- named :: CI Text -> Traversal' Element Element
- nodes :: Lens' Element [Node]
- subtree :: (Text -> Bool) -> (Text -> Text -> Bool) -> Getting r Element (Maybe Element)
- attrs :: Lens' Element (Map Name Text)
- attributeSatisfies :: Name -> (Text -> Bool) -> Traversal' Element Element
- attributeIs :: Name -> Text -> Traversal' Element Element
- withoutAttribute :: Name -> Traversal' Element Element
- remapAttributes :: (Name -> Text -> Maybe (Name, Text)) -> Getting r Element Element
Documentation
named :: CI Text -> Traversal' Element Element Source #
Traverse elements which has the specified *local* name (case-insensitive).
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
Arguments
| :: Name | attribute name |
| -> Text | value of the attribute |
| -> Traversal' Element Element |