xml-1.3.7: A simple XML library.

Portabilityportability
Stabilityprovisional
MaintainerIavor S. Diatchki <diatchki@galois.com>

Text.XML.Light

Description

A lightweight XML parsing, filtering and generating library.

This module reexports functions from:

Synopsis

Documentation

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.

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 () 
Node CData 
Node Attr 
Node Element 
Node Content 
Node [Char] 
Node [CData] 
Node [Attr] 
Node [Element] 
Node [Content] 
Node ([Attr], [CData]) 
Node ([Attr], [Element]) 
Node ([Attr], [Content]) 
Node ([Attr], String) 
Node ([Attr], CData) 
Node ([Attr], Element) 
Node ([Attr], Content) 
Node (Attr, String) 
Node (Attr, CData) 
Node (Attr, Element) 
Node (Attr, Content) 

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

Create node with unqualified name