---
name: "xml2rfc"
section: "1"
platform: "linux"
package: "xml2rfc"
version: "1.32.dfsg-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/xml2rfc"
---

# xml2rfc(1)

format RFCs using XML markup

## NAME

xml2rfc - format RFCs using XML markup

## SYNOPSIS

**xml2rfc** *source*\
 **xml2rfc** *source* *output*.txt\
 **xml2rfc** *source* *output*.html\
 **xml2rfc** *source* *output*.nr\
 **xml2rfc**

## DESCRIPTION

**xml2rfc** converts an XML document using the DTD describe in RFC 2629 to plain text, nroff or HTML format.

When invoked with a single argument, **xml2rfc** converts the given source file to text format and writes the result to a file having the same basename and the extension **.txt**. Otherwise, the output format is controlled by the extension of the output file (given in the second argument).

When **xml2rfc** is invoked with no arguments, and the DISPLAY environment variable is set, the user can interactively choose the file to convert.

## ENVIRONMENT VARIABLES

The following environment variables are processed by **xml2rfc**:

- DISPLAY

  This environment variable is used to locate an X11 display.

## SEE ALSO

**RFC 2629**

## AUTHOR

This manpage has been written by Florian Weimer \<fw@deneb.enyo.de\>, for the Debian GNU/Linux project.
