hxt-9.3.1.1: A collection of tools for processing XML with Haskell.

Portabilityportable
Stabilityexperimental
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Safe HaskellNone

Text.XML.HXT.Arrow.Pickle.Schema

Description

Version : $Id$

Datatypes and functions for building a content model for XML picklers. A schema is part of every pickler and can be used to derive a corrensponding DTD (or Relax NG schema). This schema further enables checking the picklers.

Synopsis

Documentation

data Schema

The datatype for modelling the structure of an

Constructors

Any 
Seq 

Fields

sc_l :: [Schema]
 
Alt 

Fields

sc_l :: [Schema]
 
Rep 

Fields

sc_lb :: Int
 
sc_ub :: Int
 
sc_1 :: Schema
 
Element 

Fields

sc_n :: Name
 
sc_1 :: Schema
 
Attribute 

Fields

sc_n :: Name
 
sc_1 :: Schema
 
ElemRef 

Fields

sc_n :: Name
 
CharData 

Fields

sc_dt :: DataTypeDescr
 

Instances

type Name = String

type Schemas = [Schema]

isScXsd :: (String -> Bool) -> Schema -> Bool

test: is schema a simple XML Schema datatype

isScFixed :: Schema -> Bool

test: is type a fixed value attribute type

xsdParam :: String -> Schema -> String

access an attribute of a descr of an atomic type

scRep :: Int -> Int -> Schema -> Schema