Copyright | (c) Galois Inc. 2007 (c) Herbert Valerio Riedel 2019 |
---|---|
License | BSD-3-Clause AND GPL-3.0-or-later |
Safe Haskell | None |
Language | Haskell2010 |
A lightweight XML parsing, filtering and generating library.
This module reexports functions from:
Synopsis
- class Node t where
- unqual :: LName -> QName
- unode :: Node t => LName -> t -> Element
- add_attr :: Attr -> Element -> Element
- add_attrs :: [Attr] -> Element -> Element
- class IsContent x where
- toContent :: x -> Content
- fromContent :: Content -> Maybe x
- module Text.XML.Types
- module Text.XML.Proc
- module Text.XML.Input
- module Text.XML.Output
Smart Element node constructor
A smart element constructor which uses the type of its argument to determine what sort of element to make.
Instances
Node () Source # | |
Node Text Source # | |
Node ShortText Source # | |
Node CData Source # | |
Node Attr Source # | |
Node Element Source # | |
Node Content Source # | |
Node [CData] Source # | |
Node [Attr] Source # | |
Node [Element] Source # | |
Node [Content] Source # | |
Node ([Attr], [CData]) Source # | |
Node ([Attr], [Element]) Source # | |
Node ([Attr], [Content]) Source # | |
Node ([Attr], Text) Source # | |
Node ([Attr], ShortText) Source # | |
Node ([Attr], CData) Source # | |
Node ([Attr], Element) Source # | |
Node ([Attr], Content) Source # | |
Node (Attr, Text) Source # | |
Node (Attr, ShortText) Source # | |
Node (Attr, CData) Source # | |
Node (Attr, Element) Source # | |
Node (Attr, Content) Source # | |
Unqualified names
Attribute helpers
Content
conversion/casts
class IsContent x where Source #
Convenience class for converting to/from Content
values
Since: 0.3.0
toContent :: x -> Content Source #
upcast or generalize to Content
fromContent :: Content -> Maybe x Source #
downcast or specialize (if possible) to a specific Content
subtype
Reexports
module Text.XML.Types
module Text.XML.Proc
module Text.XML.Input
module Text.XML.Output