hxt-9.3.1.18: 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

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

Alt 

Fields

Rep 

Fields

Element 

Fields

Attribute 

Fields

ElemRef 

Fields

CharData 

Fields

Instances

Instances details
Eq Schema # 
Instance details

Defined in Text.XML.HXT.Arrow.Pickle.Schema

Methods

(==) :: Schema -> Schema -> Bool

(/=) :: Schema -> Schema -> Bool

Show Schema # 
Instance details

Defined in Text.XML.HXT.Arrow.Pickle.Schema

Methods

showsPrec :: Int -> Schema -> ShowS

show :: Schema -> String

showList :: [Schema] -> ShowS

type Name = String #

type Schemas = [Schema] #

data DataTypeDescr #

Constructors

DTDescr 

Fields

Instances

Instances details
Eq DataTypeDescr # 
Instance details

Defined in Text.XML.HXT.Arrow.Pickle.Schema

Show DataTypeDescr # 
Instance details

Defined in Text.XML.HXT.Arrow.Pickle.Schema

Methods

showsPrec :: Int -> DataTypeDescr -> ShowS

show :: DataTypeDescr -> String

showList :: [DataTypeDescr] -> ShowS

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

test: is schema a simple XML Schema datatype

isScFixed :: Schema -> Bool #

test: is type a fixed value attribute type

isScEnum :: Schema -> Bool #

isScElem :: Schema -> Bool #

isScAttr :: Schema -> Bool #

isScElemRef :: Schema -> Bool #

isScCharData :: Schema -> Bool #

isScSARE :: Schema -> Bool #

isScList :: Schema -> Bool #

isScOpt :: Schema -> Bool #

xsdParam :: String -> Schema -> String #

access an attribute of a descr of an atomic type

scDT :: String -> String -> Attributes -> Schema #

scDTxsd :: String -> Attributes -> Schema #

scFixed :: String -> Schema #

scEnum :: [String] -> Schema #

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

scElem :: String -> Schema -> Schema #

scAttr :: String -> Schema -> Schema #