FeedReader. Recovery
(FeedReader v0.1.0)
Copy Markdown
Public facade for streaming XML recovery.
It detects declared encodings and applies prefix, encoding, entity, and malformed-attribute recovery in that order. Each stage preserves streaming behavior and carries incomplete markup across chunk boundaries.
Summary
Functions
Returns the encoding declared by an XML prefix, defaulting to UTF-8.
Normalizes an enumerable of XML chunks without eagerly consuming it.
Functions
@spec declared_encoding(binary()) :: :utf8 | :latin1 | :ascii
Returns the encoding declared by an XML prefix, defaulting to UTF-8.
@spec normalize(Enumerable.t(), :utf8 | :latin1 | :ascii) :: Enumerable.t()
Normalizes an enumerable of XML chunks without eagerly consuming it.