blob: 10133cf96131de6f36153a841659c7602d8f7419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
.Dd July 25, 2021
.Dt SFEED_XMLENC 1
.Os
.Sh NAME
.Nm sfeed_xmlenc
.Nd get text-encoding from XML
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
.Nm
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.
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
Get text-encoding from an Atom feed:
.Bd -literal
curl -s -L 'https://codemadness.org/atom.xml' | sfeed_xmlenc
.Ed
.Sh SEE ALSO
.Xr sfeed_update 1 ,
.Xr sh 1
.Sh AUTHORS
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org
|