ElixirXML.Scanner (ElixirXML v0.0.1)

View Source

A simple XML scanner that tokenizes an XML buffer into structured elements.

This module processes XML content and extracts meaningful components such as:

  • XML headers
  • Opening and closing tags
  • Attributes
  • Text content

It provides a scan/1 function that processes an input buffer and returns structured tuples.

Summary

Functions

Scans an XML buffer and returns a tuple representing the next XML element.

Functions

scan(buffer)

@spec scan(binary()) :: {tuple(), binary()}

Scans an XML buffer and returns a tuple representing the next XML element.

Examples

iex> ElixirXML.Scanner.scan("<tag>")
{{:element_open, "tag", []}, ""}