Yex.Xml protocol (y_ex v0.8.0)

View Source

Defines a protocol for XML node operations. This protocol provides basic navigation and string conversion functionality for XML nodes.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns the next sibling node of the current node.

Returns the parent node of the current node.

Returns the previous sibling node of the current node.

Converts the XML node to its string representation.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

next_sibling(xml)

Returns the next sibling node of the current node.

parent(xml)

Returns the parent node of the current node.

prev_sibling(xml)

Returns the previous sibling node of the current node.

to_string(xml)

Converts the XML node to its string representation.