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

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

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 Source

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

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

test: is schema a simple XML Schema datatype

isScFixed :: Schema -> BoolSource

test: is type a fixed value attribute type

xsdParam :: String -> Schema -> StringSource

access an attribute of a descr of an atomic type