Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder, DFKI GmbH 2010
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

Common.XUpdate

Description

Synopsis

Documentation

data Insert

Constructors

Before 
After 
Append 

Instances

data Change

Constructors

Change ChangeSel Expr 

Instances

anaMods :: Monad m => Element -> m [Change]

getAttrVal :: Monad m => String -> Element -> m String

extract the non-empty attribute value

readAttrVal :: (Read a, Monad m) => String -> String -> Element -> m a

apply a read operation to the extracted value

maybeF :: Monad m => String -> Maybe a -> m a

str2QName :: String -> QName

convert a string to a qualified name by splitting at the colon

getText :: Monad m => Element -> m String

extract text and check for no other children

partitionAddChanges :: [AddChange] -> ([Attr], [Content])

partitions additions and ignores comments, pi, and value-of

failX :: Monad m => String -> QName -> m a

noContent :: Monad m => Element -> a -> m a

check if the element contains no other content