vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 1 | .de Vb |
| 2 | .sp |
| 3 | .ft CW |
| 4 | .nf |
| 5 | .. |
| 6 | .de Ve |
| 7 | .ft R |
| 8 | .fi |
| 9 | .sp |
| 10 | .. |
| 11 | .TH ENBER 1 "\*(Dt" "unber counterpart" "unber counterpart" |
| 12 | .SH NAME |
| 13 | enber \- Convert the unber XML output back into BER |
| 14 | .SH SYNOPSIS |
vlm | 91ac31c | 2004-09-27 20:31:19 +0000 | [diff] [blame] | 15 | enber [\fB-n\fR] [\fB-\fR] \fIinfile\fR... |
vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 16 | .SH DESCRIPTION |
vlm | 91ac31c | 2004-09-27 20:31:19 +0000 | [diff] [blame] | 17 | enber takes the XML-formatted files produced by \fIunber\fR\|(1) and converts |
vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 18 | them back into the BER format. |
| 19 | A single dash represents the standard input. |
vlm | 91ac31c | 2004-09-27 20:31:19 +0000 | [diff] [blame] | 20 | .SH OPTIONS |
| 21 | .TP |
| 22 | \fB\-n\fR |
| 23 | Disable input validation. By default, enber performs some basic validity checks |
| 24 | against the XML input. This option disables such checks. |
vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 25 | .SH EXAMPLES |
| 26 | Decode the BER sequence and immediately encode it back |
| 27 | .Vb |
vlm | 7bbc577 | 2004-09-24 23:51:53 +0000 | [diff] [blame] | 28 | \& unber \fB-p\fR \fIfilename.ber\fR | enber \fB-\fR > \fIreconstructed.ber\fR |
vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 29 | .Ve |
vlm | 91ac31c | 2004-09-27 20:31:19 +0000 | [diff] [blame] | 30 | .SH FOOTNOTES |
| 31 | This program does not attempt to perform full-fledged XML parsing. It is merely |
| 32 | compatible with \fIunber\fR\|(1)'s output. |
| 33 | In particular, the XML comments are not supported. |
| 34 | The following characters after the initial white space indicate |
| 35 | the start of a comment: "\fB#\fR" (a hash) and "\fB--\fR" (two dashes). |
| 36 | The whole comment line is ignored completely. Empty lines are ignored as well. |
| 37 | .P |
| 38 | The following example demostrates the use of comments: |
| 39 | .Vb |
| 40 | \& <C T="[1]" TL="2" V="2"> |
| 41 | \& <I T="[1]" TL="2" V="Indefinite"> |
| 42 | \& -- </I> |
| 43 | \& # Do not terminate: |
| 44 | \& # the absence of end-of-content octets is intentional! |
| 45 | \& </C> |
| 46 | .Ve |
vlm | eda244a | 2004-09-24 21:00:15 +0000 | [diff] [blame] | 47 | .SH SEE ALSO |
| 48 | .TP |
| 49 | \&\fIunber\fR\|(1), \&\fIasn1c\fR\|(1) |
| 50 | .SH AUTHORS |
| 51 | Lev Walkin <vlm@lionet.info> |