XmlWriter

zio.blocks.schema.xml.XmlWriter
object XmlWriter

JVM implementation of XmlWriter for serializing Xml AST nodes to XML strings.

Attributes

Source
XmlWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
XmlWriter.type

Members list

Value members

Concrete methods

def write(xml: Xml, config: WriterConfig = ...): String

Writes an XML node to a string.

Writes an XML node to a string.

Value parameters

config

Writer configuration

xml

The XML node to write

Attributes

Returns

XML string representation

Source
XmlWriter.scala
def writeToBytes(xml: Xml, config: WriterConfig = ...): Array[Byte]

Writes an XML node to a byte array.

Writes an XML node to a byte array.

Value parameters

config

Writer configuration

xml

The XML node to write

Attributes

Returns

XML byte array in the specified encoding

Source
XmlWriter.scala