Module

Web.DOM.Document.XPath

#NSResolver

#XPathResult

#evaluateNumber

evaluateNumber :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect Number

Convenience function to avoid two funciton calls and possibly mismatched types.

#evaluateString

evaluateString :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect String

Convenience function to avoid two funciton calls and possibly mismatched types.

#evaluateBoolean

evaluateBoolean :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect Boolean

Convenience function to avoid two funciton calls and possibly mismatched types.

#booleanValue

booleanValue :: XPathResult -> Effect Boolean

Not to be confused with retrieving xs:boolean values, this is to be used with the XPath boolean() function call.

#singleNodeValueInternal

#singleNodeValue

#invalidIteratorState

#snapshotLengthInternal

#snapshotLength

#snapshotItem

#snapshot

snapshot :: XPathResult -> Effect (Array Node)

High level wrapper around snapshotItem and snapshotLength that directly returns an Array of Nodes.

#customNSResolver

#createNSResolver

#lookupNamespaceURIInternal

#lookupNamespaceURI

#defaultNSResolver

defaultNSResolver :: Node -> Document -> Effect NSResolver

Same interface as createNSResolver, but will use the owner document as the nodeResolver if it exists. See MDN.

Modules