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

CopyrightCopyright (C) 2005 Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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 -> Bool Source

test: is schema a simple XML Schema datatype

isScFixed :: Schema -> Bool Source

test: is type a fixed value attribute type

xsdParam :: String -> Schema -> String Source

access an attribute of a descr of an atomic type