XmlNodeNodeWriteOps

cats.xml.XmlNodeSyntax.XmlNodeNodeWriteOps
implicit class XmlNodeNodeWriteOps(node: Node)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def appendAttrs(newAttr: XmlAttribute, newAttrs: XmlAttribute*): Node
def appendAttrs(newAttrs: Seq[XmlAttribute]): Node
def prependAttrs(newAttr: XmlAttribute, newAttrs: XmlAttribute*): Node
def prependAttrs(newAttrs: Seq[XmlAttribute]): Node
def removeAttr(key: String): Node
def updateAttr(key: String)(f: () => XmlAttribute): Node
def updateText[T : DataEncoder](f: () => T)(implicit evidence$2: Decoder[T], evidence$3: DataEncoder[T], dmi: DummyImplicit): Node

Decode and then update node text if content is text.

Decode and then update node text if content is text.

If you need raw data see updateTextRaw

Attributes

def updateText[T1 : Decoder, T2 : DataEncoder](f: T1 => T2): Node

Decode and then update node text if content is text.

Decode and then update node text if content is text.

If you need raw data see updateTextRaw

Attributes

Update node text if content is text.

Update node text if content is text.

If you need decoded data see updateText

Attributes

def withAttributes(attrs: Seq[XmlAttribute]): Node
def withLabel(newLabel: String): Node

Rename node label. This method isn't pure for usability purpose.

Rename node label. This method isn't pure for usability purpose.

Throws IllegalArgumentException If the new label values is not valid. See Xml.isValidXmlName

Attributes

newLabel

new label value

Returns:

Same node with updated label

def withText[T : DataEncoder](data: T): Node

Set node content to Text with the specified data. All children nodes will be removed.

Set node content to Text with the specified data. All children nodes will be removed.

Attributes