zio.blocks.schema.xml
Members list
Type members
Classlikes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
BuildInfo.type
Attributes
- Companion
- class
- Source
- ReaderConfig.scala
- Supertypes
- Self type
-
ReaderConfig.type
Configuration for XML reader behavior and limits.
Configuration for XML reader behavior and limits.
Value parameters
- maxAttributes
-
Maximum number of attributes per element
- maxDepth
-
Maximum nesting depth for XML elements (prevents stack overflow attacks)
- maxTextLength
-
Maximum length of text content
- preserveWhitespace
-
If true, preserve all whitespace in text nodes; if false, trim leading/trailing whitespace
Attributes
- Companion
- object
- Source
- ReaderConfig.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WriterConfig.scala
- Supertypes
- Self type
-
WriterConfig.type
Configuration for XML writing.
Configuration for XML writing.
Value parameters
- encoding
-
Character encoding to specify in the XML declaration.
- includeDeclaration
-
Whether to include the XML declaration ().
- indentStep
-
Number of spaces per indentation level. 0 means no indentation.
Attributes
- Companion
- object
- Source
- WriterConfig.scala
- Supertypes
A sealed trait representing an XML node.
A sealed trait representing an XML node.
The Xml type provides a complete representation of XML data with five possible cases: Element, Text, CData, Comment, and ProcessingInstruction.
Attributes
A fluent builder for constructing XML nodes programmatically.
A fluent builder for constructing XML nodes programmatically.
Provides factory methods for creating XML nodes and an ElementBuilder class for building elements with a fluent API.
Example:
val elem = XmlBuilder.element("root")
.attr("id", "1")
.attr("class", "main")
.child(XmlBuilder.element("child").text("content").build)
.build
Attributes
- Source
- XmlBuilder.scala
- Supertypes
- Self type
-
XmlBuilder.type
Attributes
- Companion
- object
- Source
- XmlCodec.scala
- Supertypes
Attributes
- Companion
- class
- Source
- XmlCodec.scala
- Supertypes
- Self type
-
XmlCodec.type
Attributes
- Companion
- object
- Source
- XmlCodecDeriver.scala
- Supertypes
- Known subtypes
-
object XmlCodecDeriver
Attributes
- Companion
- class
- Source
- XmlCodecDeriver.scala
- Supertypes
- Self type
-
XmlCodecDeriver.type
A custom exception class without the stack trace representing errors that occur during XML encoding/decoding operations.
A custom exception class without the stack trace representing errors that occur during XML encoding/decoding operations.
The XmlCodecError class extends Throwable to provide enhanced error reporting for scenarios involving XML encoding or decoding errors where dynamic data paths (spans) are involved. These spans represent the stack of nodes traversed within the data structure when the error occurred. So that top-level spans are at the end of the list.
Value parameters
- message
-
A descriptive message providing additional context or details about the error.
- spans
-
A list of
DynamicOptic.Nodeobjects representing the traversal path within the data structure where the error occurred. Each node encapsulates information about a specific element (field, index, etc.).
Attributes
- Source
- XmlCodecError.scala
- Supertypes
Attributes
- Source
- XmlCodecDeriver.scala
- Supertypes
- Self type
-
XmlFormat.type
Represents an XML qualified name with an optional namespace URI and prefix.
Represents an XML qualified name with an optional namespace URI and prefix.
Value parameters
- localName
-
The local part of the name (without prefix)
- namespace
-
Optional namespace URI
- prefix
-
Optional namespace prefix (used for display purposes)
Attributes
- Companion
- object
- Source
- XmlName.scala
- Supertypes
Attributes
- Companion
- class
- Source
- XmlName.scala
- Supertypes
- Self type
-
XmlName.type
Attributes
- Companion
- class
- Source
- XmlPatch.scala
- Supertypes
- Self type
-
XmlPatch.type
An immutable patch for XML modification operations.
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
- Supertypes
Attributes
- Source
- XmlReader.scala
- Supertypes
- Self type
-
XmlReader.type
A wrapper around Either[SchemaError, Chunk[Xml]] that provides fluent chaining for XML navigation and querying operations.
A wrapper around Either[SchemaError, Chunk[Xml]] that provides fluent chaining for XML navigation and querying operations.
XmlSelection enables a fluent API style for navigating through XML structures:
xml.get("users").elements.apply(0).get("name").texts
The selection can contain zero, one, or multiple XML values, supporting both single-value navigation and multi-value queries.
Attributes
- Companion
- object
- Source
- XmlSelection.scala
- Supertypes
Attributes
- Companion
- class
- Source
- XmlSelection.scala
- Supertypes
- Self type
-
XmlSelection.type
Attributes
- Companion
- trait
- Source
- XmlType.scala
- Supertypes
- Self type
-
XmlType.type
A sealed trait representing the type of XML node.
A sealed trait representing the type of XML node.
Each case provides two type members:
Type: The corresponding Xml subtype (e.g.,Xml.Element)Unwrap: The underlying Scala type of the value
Attributes
- Companion
- object
- Source
- XmlType.scala
- Supertypes
- Known subtypes
JVM implementation of XmlWriter for serializing Xml AST nodes to XML strings.
JVM implementation of XmlWriter for serializing Xml AST nodes to XML strings.
Attributes
- Source
- XmlWriter.scala
- Supertypes
- Self type
-
XmlWriter.type
Attributes
- Source
- syntax.scala
- Supertypes
- Self type
-
syntax.type
Attributes
- Companion
- class
- Source
- xmlAttribute.scala
- Supertypes
- Self type
-
xmlAttribute.type
Marks a field to be encoded as an XML attribute instead of a child element.
Marks a field to be encoded as an XML attribute instead of a child element.
Value parameters
- name
-
Optional custom name for the attribute. If empty, the field name is used.
Attributes
- Companion
- object
- Source
- xmlAttribute.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- xmlNamespace.scala
- Supertypes
- Self type
-
xmlNamespace.type
Specifies the XML namespace for a type.
Specifies the XML namespace for a type.
Value parameters
- prefix
-
Optional namespace prefix (e.g., "atom"). If empty, uses default namespace.
- uri
-
The namespace URI (e.g., "http://www.w3.org/2005/Atom")
Attributes
- Companion
- object
- Source
- xmlNamespace.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all