XmlNodeCursorOps

cats.xml.XmlNodeSyntax.XmlNodeCursorOps
implicit class XmlNodeCursorOps(node: XmlNode)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def focus[X <: Xml](f: Root.type => Cursor[X]): Result[X]

Build and apply a Cursor to this XmlNode instance.

Build and apply a Cursor to this XmlNode instance.

Type parameters

X

type of the focusing output

Value parameters

f

function to build the cursor

Attributes

Returns

Cursor result, Left when fails Right when succeed

def focus[T](f: Root.type => FreeCursor[T]): Result[T]

Build and apply a FreeCursor to this XmlNode instance.

Build and apply a FreeCursor to this XmlNode instance.

Type parameters

T

type of the focusing output

Value parameters

f

function to build the cursor

Attributes

Returns

Cursor result, Left when fails Right when succeed

def modify(f: Root.type => Modifier[XmlNode]): Result[XmlNode]