view · edit · sidebar · attach · print · history

20120913-update-oddb2xml-output-xml

<< | Index | >>


Summary

  • update output xml of oddb2xml

Commits

Index

  • Updated output xml fields

Updated output xml fields

z.B.

oddb_product.xml
  <PRD DT="">
    <PRDNO>69712</PRDNO>
    <DSCRD>3TC Trink Lös 10 mg/ml o alkohol</DSCRD>
    <DSCRF>3TC sol buv 10 mg/ml s alcol </DSCRF>
    <ATC>J05AF05</ATC>
    <CPT>
      <CPTCMP>
        <LINE>0</LINE>
        <QTY>150</QTY>
        <QTYU>mg</QTYU>
      </CPTCMP>
    </CPT>
  </PRD>
oddb_article.xml
  <ART DT="">
    <PHAR>3815300</PHAR>
    <PRDNO>1092061</PRDNO>
    <SMCAT>D</SMCAT>
    <SMNO>57964001</SMNO>
    <LIMPTS>30</LIMPTS>
    <QTY>200 ml</QTY>
    <DSCRD>ANTIDRY calm Lotion</DSCRD>
    <DSCRF>ANTIDRY calm lotion</DSCRF>
    <SORTD>ANTIDRY CALM LOTION</SORTD>
    <SORTF>ANTIDRY CALM LOTION</SORTF>
    <SYN1D>Antidry calm Lotion</SYN1D>
    <SYN1F>Antidry calm lotion</SYN1F>
    <ARTCOMP>
      <COMPNO>7601001002029</COMPNO>
    </ARTCOMP>
    <ARTBAR>
      <CDTYP>E13</CDTYP>
      <BC>7680579640017</BC>
      <BCSTAT>A</BCSTAT>
    </ARTBAR>
    <ARTPRI>
      <VDAT>01.07.2008</VDAT>
      <PTYP>PEXF</PTYP>
      <PRICE>7.86</PRICE>
    </ARTPRI>
    <ARTPRI>
      <VDAT>01.07.2008</VDAT>
      <PTYP>PPUB</PTYP>
      <PRICE>14.5</PRICE>
    </ARTPRI>
  </ART>

NOTE

use Time.new (not Time.now) for using usec.

[1] 1.9.3-p-1(main)> Time.new.strftime('%FT%T.%7N%z')
=> "2012-09-13T16:43:41.2299630+0900"
view · edit · sidebar · attach · print · history
Page last modified on September 14, 2012, at 09:59 AM