<?xml version="1.0" encoding="Windows-1250"?>
<VFPDataSet>
<objednavka id_obj="12345" cislo="1107PO121211" varsymbol="20180101" emailfaktura="meno@server.com" datum="1.7.2011" suma_bDPH="106.25" suma_sDPH="127.50">
<zakaznik>
<id_zak>12345</id_zak>
<login>AAA</login>
<tel>0903 123 123</tel>
<kontaktna_osoba>Jozef Novak</kontaktna_osoba>
<fakturacna_adresa>
<titul>Ing.</titul>
<meno>Jozef</meno>
<priezvisko>Novák</priezvisko>
<ulica>A. Hlinku</ulica>
<cislo_domu>2214</cislo_domu>
<mesto>Žilina</mesto>
<psc>01010</psc>
<stat>Slovensko</stat>
<ico>1234567890</ico>
<dic>1234567890</dic>
<icdph>SK1234567890</icdph>
</fakturacna_adresa>
<dodacia_adresa>
<titul>Ing.</titul>
<meno>Jozef</meno>
<priezvisko>Novák</priezvisko>
<ulica>A. Hlinku</ulica>
<cislo_domu>2214</cislo_domu>
<mesto>Žilina</mesto>
<psc>01010</psc>
<stat>Slovensko</stat>
</dodacia_adresa>
</zakaznik> /*this structuje is OK*/
<poznamka>Poslať len ak bude objednávka kompletná</poznamka>
<polozky pocet="2" kontrolny_sucet="13.0123">
<polozka id_kart="2440" id_sklad="63242" pocet="1" poznamka="Ak nebude takéto balenie, tak väčšie" predaj_sdph="1.56" predaj_bdph="1.42" />
<polozka id_kart="3735" id_sklad="62240" pocet="12.0123" poznamka="" />
</polozky>
</objednavka>
</VFPDataSet>
<polozka> is tag of ordered item
"pocet" in tag <polozky> => quantity of tag <polozka> (when customer ordered two kind of product this tag has value 2. When customer ordered two kind of product when first product in two quantity, this tag is stil 2)
"predaj_sdph" => price with VAT minus the price without VAT
"kontrolny_sucet" => total quantity of ordered products (when customer ordered two kind of product this tag has value 2. When customer ordered two kind of product when first product in two quantity, this tag is 3)
I have problem with tag <polozky>. I need the checksum of the items that will be in this tag. And I also need to quantify the sum of VAT. Is it possible to create this type of xml?