carta
sfeed_xmlenc(1)

sfeed_xmlenc1

Get text-encoding from xml

Usage

sfeed_xmlenc

Overview

sfeed_xmlenc reads XML data from stdin and writes the found text-encoding to stdout. It converts characters in the encoding-name to lowercase and strips characters which are not allowed in an encoding-name.

Exit status

The sfeed_xmlenc utility exits 0 on success, and >0 if an error occurs.

Examples

Get text-encoding from an Atom feed:

curl -s -L 'https://codemadness.org/atom.xml' | sfeed_xmlenc

Authors

Hiltjo Posthuma ⟨[email protected]⟩

From sfeed 2.2-1 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.