---
name: "sfeed_xmlenc"
section: "1"
platform: "linux"
package: "sfeed"
version: "2.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sfeed_xmlenc"
---

# sfeed\_xmlenc(1)

get text-encoding from XML

## NAME

**sfeed\_xmlenc** – get text-encoding from XML

## SYNOPSIS

**sfeed\_xmlenc**

## DESCRIPTION

**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
```

## SEE ALSO

[sfeed\_update(1)](/sfeed_update/1.md), [sh(1)](/sh/1.md)

## AUTHORS

Hiltjo Posthuma ⟨*hiltjo@codemadness.org*⟩
