xml-types-0.1.2: Basic types for representing XML

Data.XML.Types

Contents

Synopsis

Types

Document prologue

Document body

data Name Source

The Eq instance for Name ignores prefixes.

The IsString instance for Name allows entry using Clark notation; see http://www.jclark.com/xml/xmlns.htm and http://infohost.nmt.edu/tcc/help/pubs/pylxml/etree-QName.html

Instances

class Named a whereSource

Methods

getName :: a -> NameSource

Doctypes

Incremental processing

data Event Source

Some XML processing tools are incremental, and work in terms of events rather than node trees. Defining the event type here, even though it won't be useful to most users, allows these packages to interoperate more easily.

Instances

Predicates

isNamed :: Named a => Name -> a -> [a]Source

Filters

position :: Integer -> (a -> [b]) -> a -> [b]Source