Module

Data.XPath

Package
purescript-xpath-like
Repository
bbarker/purescript-xpath-like

#XPathLike Source

class (Semigroup m) <= XPathLike m  where

Provides utility functions for working with XPaths.

Members

  • pathAppend :: m -> m -> m

    Put a path seperator between two XPaths and return the resulting XPath.

  • pathAppendNSx :: m -> m -> m

    Useful variant of pathAppend needed for some XPath implementations; insert a separator with a dummy namespace ("x") for the second XPath fragment. For example: root /? "record" /? "identifier" == "/x:record/x:identifier".

  • at :: m -> m

    Prepend an '@'

  • xx :: m -> m

    Prepend a dummy namespace

  • root :: m

    The root XPath representation.

Instances

#(//) Source

Operator alias for Data.XPath.pathAppend (right-associative / precedence 5)

#(/?) Source

Operator alias for Data.XPath.pathAppendNSx (right-associative / precedence 5)

Modules
Data.XPath