modifiers

object modifiers extends XmlModifierInstances
trait XmlModifierInstances
class Object
trait Matchable
class Any

Type members

Inherited classlikes

case class Append(newNs: NodeSeq)

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 Params
newNs

Nodes to append.

Inherited from
XmlModifierInstances
case class Prepend(newNs: NodeSeq)

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 Params
newNs

Nodes to prepend.

Inherited from
XmlModifierInstances
case object Remove

Remove selected nodes.

Remove selected nodes.

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

Remove attributes.

Remove attributes.

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

Value Params
ps

Attribute predicates.

Inherited from
XmlModifierInstances
object RemoveAttrs
Inherited from
XmlModifierInstances
case class Replace(f: NodeSeq => NodeSeq)

Replace current nodes.

Replace current nodes.

Value Params
f

Function to from current nodes to new nodes.

Inherited from
XmlModifierInstances
object SetAttr
Inherited from
XmlModifierInstances
object SetAttrs
Inherited from
XmlModifierInstances
case class SetAttrs(f: Elem => NonEmptyList[AttributeData])

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 Params
f

takes Elem (attribute container), returns Attributes data.

Inherited from
XmlModifierInstances

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
XmlModifierInstances

Implicits

Inherited implicits

Inherited from
XmlModifierInstances
Inherited from
XmlModifierInstances