Text.XML.Light

xml-1.3.7: A simple XML library.

Copyright | (c) Galois Inc. 2007
License | BSD3
Maintainer | Iavor S. Diatchki <diatchki@galois.com>
Stability | provisional
Portability | portability
Safe Haskell | Safe
Language | Haskell98

Text.XML.Light

Description

A lightweight XML parsing, filtering and generating library.

This module reexports functions from:

- Text.XML.Light.Types
- Text.XML.Light.Proc
- Text.XML.Light.Input
- Text.XML.Light.Output

Synopsis

- class Node t where
  - node :: QName -> t -> Element
- add_attr :: Attr -> Element -> Element
- add_attrs :: [Attr] -> Element -> Element
- unqual :: String -> QName
- unode :: Node t => String -> t -> Element
- module Text.XML.Light.Types
- module Text.XML.Light.Proc
- module Text.XML.Light.Input
- module Text.XML.Light.Output

# Documentation

class Node t where #

A smart element constructor which uses the type of its argument to determine what sort of element to make.

Methods

node :: QName -> t -> Element #

Instances

Node () # |
Instance details Defined in Text.XML.Light Methods node :: QName -> () -> Element #
Node CData # |
Instance details Defined in Text.XML.Light Methods node :: QName -> CData -> Element #
Node Attr # |
Instance details Defined in Text.XML.Light Methods node :: QName -> Attr -> Element #
Node Element # |
Instance details Defined in Text.XML.Light Methods node :: QName -> Element -> Element #
Node Content # |
Instance details Defined in Text.XML.Light Methods node :: QName -> Content -> Element #
Node [Char] # |
Instance details Defined in Text.XML.Light Methods node :: QName -> [Char] -> Element #
Node [CData] # |
Instance details Defined in Text.XML.Light Methods node :: QName -> [CData] -> Element #
Node [Attr] # |
Instance details Defined in Text.XML.Light Methods node :: QName -> [Attr] -> Element #
Node [Element] # |
Instance details Defined in Text.XML.Light Methods node :: QName -> [Element] -> Element #
Node [Content] # |
Instance details Defined in Text.XML.Light Methods node :: QName -> [Content] -> Element #
Node ([Attr], [CData]) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], [CData]) -> Element #
Node ([Attr], [Element]) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], [Element]) -> Element #
Node ([Attr], [Content]) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], [Content]) -> Element #
Node ([Attr], String) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], String) -> Element #
Node ([Attr], CData) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], CData) -> Element #
Node ([Attr], Element) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], Element) -> Element #
Node ([Attr], Content) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> ([Attr], Content) -> Element #
Node (Attr, String) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> (Attr, String) -> Element #
Node (Attr, CData) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> (Attr, CData) -> Element #
Node (Attr, Element) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> (Attr, Element) -> Element #
Node (Attr, Content) # |
Instance details Defined in Text.XML.Light Methods node :: QName -> (Attr, Content) -> Element #

add_attr :: Attr -> Element -> Element #

Add an attribute to an element.

add_attrs :: [Attr] -> Element -> Element #

Add some attributes to an element.

unqual :: String -> QName #

Create an unqualified name.

unode :: Node t => String -> t -> Element #

Create node with unqualified name

module Text.XML.Light.Types

module Text.XML.Light.Proc

module Text.XML.Light.Input

module Text.XML.Light.Output