Module

Metajelo.XPaths

Package
purescript-metajelo
Repository
labordynamicsinstitute/purescript-metajelo

#defaultMetajeloNS Source

defaultMetajeloNS :: String

The current Metajelo namespace URL, provided as a fallback

#getMetajeloResolver Source

getMetajeloResolver :: Node -> Document -> Effect NSResolver

Resolver that returns defaultMetajeloNS as a fallback

#ParseEnv Source

type ParseEnv = { doc :: Document, recNode :: Node, xeval :: MJXpathEvals, xevalRoot :: MJXpathRootEvals }

#MJXpathEvals Source

type MJXpathEvals = { any :: Node -> String -> ResultType -> Effect XPathResult, bool :: Node -> String -> Effect Boolean, num :: Node -> String -> Effect Number, str :: Node -> String -> Effect String }

#MJXpathRootEvals Source

type MJXpathRootEvals = { any :: String -> ResultType -> Effect XPathResult, bool :: String -> Effect Boolean, num :: String -> Effect Number, str :: String -> Effect String }

#unsafeSingleNodeValue Source

unsafeSingleNodeValue :: ParseEnv -> Node -> String -> Effect Node

Used to get a node we should be there, but still returns an error message in the event of failure (e.g., for a bad) XML document.