---
name: "report2.byte"
section: "1"
platform: "linux"
package: "cameleon"
version: "1.9.21-2+b1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/report2.byte"
---

# report2.byte(1)

OCaml code generator to read/write XML file into/from OCaml structure.

## NAME

report2.byte - OCaml code generator to read/write XML file into/from OCaml structure.

## SYNOPSIS

**report2.byte** \[-gen\] \[-ibin\] \[-obin\] \[-o *file*\] \[\[-help\] \| \[--help\]\] {*file*}

## DESCRIPTION

This manual page documents briefly the **report2.byte** command.

This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.

**report2.byte** aims to made more easy the creation of XML reader/writer and the corresponding data structure. It enables to maintain a bijection between OCaml data structure and XML grammar.

**report2.byte** has been designed to work in console mode. It is perfectly safe to use it in Makefile

- **-gen**

  Generate OCaml code for reading/writing the XML structure corresponding to the file given.

- **-ibin**

  Use a binary file as input.

- **-obin**

  Generate a binary file as output (useful to convert an XML file to a binary file).

- **-o file**

  Use the given filename to output the result of the generation. By default, the filename is the source filename where the extension has been replaced by .ml.

- **-help**, **--help**

  Display an help message.

## LICENSE

This manual page was written by Sylvain Le Gall gildor@debian.org for the Debian GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2.1 or any later version published by the Free Software Foundation; considering as source code all the file that enable the production of this manpage.

## SEE ALSO

 **report2.gui.byte** (1)

## AUTHOR

**Sylvain Le Gall** \<gildor@debian.org\>

Author.

## COPYRIGHT

Copyright © 2005, 2006 Sylvain Le Gall\
