Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder DFKI GmbH 2009
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilitynon-portable
Safe HaskellSafe

Common.ToXml

Description

xml utilities on top of the xml light package and common hets data types

Documentation

mkAttr :: String -> String -> Attr Source #

mkText :: String -> Content Source #

prettyElem :: Pretty a => String -> GlobalAnnos -> a -> Element Source #

rangeAttrsF :: ([Pos] -> String) -> Range -> [Attr] Source #

rangeAttrs :: Range -> [Attr] Source #

mkNameAttr :: String -> Attr Source #

mkPriorityAttr :: String -> Attr Source #

annotationF :: (Range -> [Attr]) -> GlobalAnnos -> Annotation -> Element Source #

subnodes :: String -> [Element] -> [Element] Source #

eitherToElem :: String -> [Either Attr Element] -> Element Source #

myDataToXml :: MyData -> Element Source #

class ToXml a where Source #

Minimal complete definition

asXml

Methods

asXml :: a -> Element Source #

Instances

Data a => ToXml a Source # 

Methods

asXml :: a -> Element Source #

ToXml Frm_Wrap Source # 

Methods

asXml :: Frm_Wrap -> Element Source #

ToXml f => ToXml (TH_FORMULA f) Source # 

Methods

asXml :: TH_FORMULA f -> Element Source #

ToXml s => ToXml (S2 s) Source # 

Methods

asXml :: S2 s -> Element Source #