XmlPatch

zio.blocks.schema.xml.XmlPatch
See theXmlPatch companion object
final case class XmlPatch(ops: Chunk[Op])

An immutable patch for XML modification operations.

XmlPatch provides a composable way to modify XML documents with operations similar to JSON Patch but tailored for XML's structure. Patches can be composed using ++ and applied to XML values using apply.

Value parameters

ops

The sequence of patch operations to apply

Attributes

Companion
object
Source
XmlPatch.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ++(that: XmlPatch): XmlPatch

Composes two patches. The result applies this patch first, then that patch.

Composes two patches. The result applies this patch first, then that patch.

Value parameters

that

The patch to apply after this one

Attributes

Returns

A new patch that applies both patches in sequence

Source
XmlPatch.scala
def apply(xml: Xml): Either[SchemaError, Xml]

Applies this patch to an XML value.

Applies this patch to an XML value.

Value parameters

xml

The XML value to patch

Attributes

Returns

Either an error or the patched XML value

Source
XmlPatch.scala
def isEmpty: Boolean

Attributes

Source
XmlPatch.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala