XmlModifier

object XmlModifier extends XmlModifierValues with XmlModifierInstances
Companion:
class
trait XmlModifierInstances
trait ComposableXmlModifierInstances
trait XmlModifierValues
trait ComposableXmlModifierValues
trait FinalXmlModifierValues
class Object
trait Matchable
class Any

Type members

Inherited classlikes

case class Append(newNs: NodeSeq) extends ComposableXmlModifier

Append nodes to current nodes. Supported only for Node and Group elements, in other case will fail.

Append nodes to current nodes. Supported only for Node and Group elements, in other case will fail.

Value parameters:
newNs

Nodes to append.

Inherited from:
ComposableXmlModifierValues
case class Prepend(newNs: NodeSeq) extends ComposableXmlModifier

Prepend nodes to current nodes. Supported only for Node and Group elements, in other case will fail.

Prepend nodes to current nodes. Supported only for Node and Group elements, in other case will fail.

Value parameters:
newNs

Nodes to prepend.

Inherited from:
ComposableXmlModifierValues
case object Remove extends FinalXmlModifier

Remove selected nodes.

Remove selected nodes.

Inherited from:
FinalXmlModifierValues
case class RemoveAttrs(ps: NonEmptyList[AttributeData => Boolean]) extends ComposableXmlModifier

Remove attributes.

Remove attributes.

Supported only for Node elements, in other case will fail.

Value parameters:
ps

Attribute predicates.

Inherited from:
ComposableXmlModifierValues
case class Replace(f: NodeSeq => NodeSeq) extends ComposableXmlModifier

Replace current nodes.

Replace current nodes.

Value parameters:
f

Function to from current nodes to new nodes.

Inherited from:
ComposableXmlModifierValues
case class SetAttrs(f: Elem => NonEmptyList[AttributeData]) extends ComposableXmlModifier

Append or replace attributes to current node.

Append or replace attributes to current node.

Supported only for Node elements, in other case will fail.

Value parameters:
f

takes Elem (attribute container), returns Attributes data.

Inherited from:
ComposableXmlModifierValues

Value members

Inherited fields

No-Action modifiers, equals to Replace passing an identity function.

No-Action modifiers, equals to Replace passing an identity function.

Inherited from:
ComposableXmlModifierValues

Implicits

Inherited implicits

Inherited from:
ComposableXmlModifierInstances