# oddb2xml
oddb2xml, creates xml files using swissINDEX, BAG-XML and Swissmedic.
## usage
see `--help`.
```
$ oddb2xml --help
oddb2xml ver.1.0.7
Usage:
oddb2xml [option]
-c F, --compress=F Compress format F. {tar.gz|zip}
-a T, --append=T Additional target. T, only 'nonpharma' is available.
-t S, --tag-suffix=S XML tag suffix S. Default is none. [A-z0-9_]
If S is given, it is also used as prefix of filename.
-h, --help Show this help message.
```
## example
option examples.
```
$ oddb2xml # => oddb_article.xml, oddb_product.xml, oddb_substance.xml
$ oddb2xml -t md # => md_article.xml, md_product.xml, md_substance.xml
$ oddb2xml -a nonpharma -t md -c tar.gz # => md_xml_dd.mm.yyyy_hh.mm.tar.gz
```
output.
```
$ oddb2xml
DE
Pharma products: 14801
FR
Pharma products: 14801
```
### article.xml
oddb2xml creates article.xml as oddb_article.xml by default.
```
31532
4123
D
29152039
A
10 Stk
BEN-U-RON Supp 250 mg Kind
BEN-U-RON supp 250 mg enf
BEN-U-RON SUPP 250 MG KIND
BEN-U-RON SUPP 250 MG ENF
Ben-u-ron
Ben-u-ron
2
E13
7680291520390
A
01.11.2012
PEXF
1.780086
01.11.2012
PPUB
3.3
...
OK
14801
```
### product.xml
For example, if `-t _swiss` is given then oddb2xml creates product.xml as swiss_product.xml.
```
1167149
Allergovit Artemisia Inj Susp Kombi
Allergovit Artemisia susp inj combi
V01AA10
07.13.30.
0
100
1000
U.
1
105
10000
U.
...
OK
5850
```
### substance.xml
product.xml has relation to substance as ``.
```
1
3-Methoxy-butylis acetas
2
4-Methylbenzylidene camphor
...
OK
1441
```