Copyright | (c) Christian Maeder DFKI GmbH 2010 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
collect xupdate information http://xmldb-org.sourceforge.net/xupdate/xupdate-wd.html http://www.xmldatabases.org/projects/XUpdate-UseCases/
Synopsis
- data AddChange
- valueOfS :: String
- data Insert
- showInsert :: Insert -> String
- data ChangeSel
- data Change = Change ChangeSel Expr
- anaXUpdates :: MonadFail m => String -> m [Change]
- anaMods :: MonadFail m => Element -> m [Change]
- xupdateS :: String
- updateS :: String
- elementS :: String
- attributeS :: String
- textS :: String
- appendS :: String
- removeS :: String
- selectS :: String
- isXUpdateQN :: QName -> Bool
- hasLocalQN :: String -> QName -> Bool
- isElementQN :: QName -> Bool
- isAttributeQN :: QName -> Bool
- isTextQN :: QName -> Bool
- isAddQN :: QName -> Bool
- isRemoveQN :: QName -> Bool
- getAttrVal :: MonadFail m => String -> Element -> m String
- readAttrVal :: (Read a, MonadFail m) => String -> String -> Element -> m a
- maybeF :: MonadFail m => String -> Maybe a -> m a
- getSelectAttr :: MonadFail m => Element -> m String
- getNameAttr :: MonadFail m => Element -> m String
- str2QName :: String -> QName
- getText :: MonadFail m => Element -> m String
- getXUpdateText :: MonadFail m => Element -> m String
- anaXUpdate :: MonadFail m => Element -> m Change
- partitionAddChanges :: [AddChange] -> ([Attr], [Content])
- failX :: MonadFail m => String -> QName -> m a
- noContent :: MonadFail m => Element -> a -> m a
- addXElem :: MonadFail m => Element -> m AddChange
- emptyCData :: CData -> Bool
- validContent :: Content -> Bool
- cleanUpElem :: Element -> Element
Documentation
possible insertions
showInsert :: Insert -> String Source #
anaXUpdates :: MonadFail m => String -> m [Change] Source #
attributeS :: String Source #
isXUpdateQN :: QName -> Bool Source #
hasLocalQN :: String -> QName -> Bool Source #
isElementQN :: QName -> Bool Source #
isAttributeQN :: QName -> Bool Source #
isRemoveQN :: QName -> Bool Source #
getAttrVal :: MonadFail m => String -> Element -> m String Source #
extract the non-empty attribute value
readAttrVal :: (Read a, MonadFail m) => String -> String -> Element -> m a Source #
apply a read operation to the extracted value
getSelectAttr :: MonadFail m => Element -> m String Source #
getNameAttr :: MonadFail m => Element -> m String Source #
getXUpdateText :: MonadFail m => Element -> m String Source #
anaXUpdate :: MonadFail m => Element -> m Change Source #
partitionAddChanges :: [AddChange] -> ([Attr], [Content]) Source #
partitions additions and ignores comments, pi, and value-of
noContent :: MonadFail m => Element -> a -> m a Source #
check if the element contains no other content
emptyCData :: CData -> Bool Source #
validContent :: Content -> Bool Source #
cleanUpElem :: Element -> Element Source #