<< 20121121-update-oddb2xml-just-medical-lookandfeel | 2012 | 20121119-debug-vetoquinol-bbmb >>
Added -t
option for md.
$ bin/oddb2xml --help bin/oddb2xml ver.1.0.6 Usage: oddb2xml [option] -c F, --compress=F Compress format F. Currently only 'tar.gz' is available. -a T, --append=T Additional target. T is only 'nonpharma' available. -t S, --tag-suffix=S XML tag suffix S. default none. Only 'md' is available. <= HERE -h, --help Show this help message.
generated XML Tag.
<?xml version="1.0" encoding="utf-8"?> <PRODUCTMD xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2012-11-20T16:42:05.9466757+0900" PROD_DATE="2012-11-20T16:42:05.9466757+0900" VALID_DATE="2012-11-20T16:42:05.9466757+0900"> <PRDMD DT=""> <PRDNOMD>43229</PRDNOMD> <DSCRDMD>3TC Filmtabl 150 mg </DSCRDMD> <DSCRFMD>3TC cpr pell 150 mg </DSCRFMD> <GENCDMD>O</GENCDMD> <ATCMD>J05AF05</ATCMD> <CPTMD> <CPTCMPMD> <LINEMD>0</LINEMD> <QTYMD>150</QTYMD> <QTYUMD>mg</QTYUMD> </CPTCMPMD> </CPTMD> </PRDMD> <PRDMD DT=""> <PRDNOMD>118547</PRDNOMD> <DSCRDMD>3TC Filmtabl 300 mg </DSCRDMD> <DSCRFMD>3TC cpr pell 300 mg </DSCRFMD> <GENCDMD>O</GENCDMD> <ATCMD>J05AF05</ATCMD> <CPTMD> <CPTCMPMD> <LINEMD>0</LINEMD> <QTYMD>300</QTYMD> <QTYUMD>mg</QTYUMD> </CPTCMPMD> </CPTMD> </PRDMD> ...
Add zip format compress option.
$ bin/oddb2xml --help bin/oddb2xml ver.1.0.6 Usage: oddb2xml [option] -c F, --compress=F Compress format F. {tar.gz|zip} <= HERE -a T, --append=T Additional target. T is only 'nonpharma' available. -t S, --tag-suffix=S XML tag suffix S. default none. Only 'md' is available. -h, --help Show this help message.