Hi to all.
I need to create an XML document , reading data from a DB Progress 10.2.b version.
I read tutorial and i learn there are 3 ways to create an XML file inside 4Gl or WebSpeed Program.
(I need to create an XML via WEBSTREAM with a series of WEBSPEED programs.)
1) SAX PARSER (I have to study)
2) X-DOM (i have old programs written in this way ..that i find a lot complicate)
3) Using Write-XML method with TEMP-TABLES and DATASET
I ask what is the best way to do that i want ???
For example i attach an example of what a thirdy companu ask to me.
Regards.
PS. I was able to do something with Write-XML Method and i found it easier than others way.
I need to create an XML document , reading data from a DB Progress 10.2.b version.
I read tutorial and i learn there are 3 ways to create an XML file inside 4Gl or WebSpeed Program.
(I need to create an XML via WEBSTREAM with a series of WEBSPEED programs.)
1) SAX PARSER (I have to study)
2) X-DOM (i have old programs written in this way ..that i find a lot complicate)
3) Using Write-XML method with TEMP-TABLES and DATASET
I ask what is the best way to do that i want ???
For example i attach an example of what a thirdy companu ask to me.
Regards.
PS. I was able to do something with Write-XML Method and i found it easier than others way.
Code:
<?xml version="1.0"?>
-<Tabella><P1 label="Prezzo unitario riservato al cliente (ECO-FEE compreso)">5,70394</P1>
<D1 label="Mag.%20Verona%20Vendita%20Std." a_value="120001">656</D1>
<D2 label="Mag.Legnago%20S.Pietro%20Vend.Std" a_value="120003">25</D2>
<D3 label="Mag.%20Saonara%20Vendita%20Std." a_value="120006">713</D3>
<D4 label="Mag.%20S.Daniele%20Vendita" a_value="120061">1522</D4>
<Lotto label="Lotti">S</Lotto>
<Lotto120001>58;28;20;</Lotto120001>
<Lotto120003>25;</Lotto120003>
<Lotto120006>64;13;12;12;12;5;</Lotto120006>
<Lotto120061>46;15;</Lotto120061>
<CodiceAssociato label="Codice Interno">CCC0811L</CodiceAssociato>
<CodiceFornitore label="Codice Fornitore">FG7OR%2019G1,5%20(B)</CodiceFornitore>
<Sigla label="Sigla">CCC</Sigla>
<Fornitore label="Fornitore">CAVO-FORN.%20VARI</Fornitore>
<Descrizione label="Descrizione">CAVO%20BUT.FLESS.FG7OR%2019G1,5%20Bobina</Descrizione>
<LisFor label="Lis. Fornitore"> 5,70394</LisFor>
<AlberoLevel label="AlberoLevel">7</AlberoLevel>
<AlberoCod label="AlberoCod">LACFHWH</AlberoCod>
<AlberoDes label="AlberoDes">1,5mmq</AlberoDes>
<ImpFee label="Importo ECO-FEE"> 0,00000</ImpFee>
<Unmiven label="Un. misura di Vendita">MT</Unmiven>
<Prezzo label="Prezzo">5,70394</Prezzo>
<Sconto label="Sconto"> 0,00</Sconto>
<Scontoapp label="Sconto Applicato">0,00</Scontoapp>
<Formsco label="Formula Sconto"/>
<Listino label="Listino">RRM</Listino>
<Flag-net label="Flag Netto">N</Flag-net>
<Proven label="Codice Promozione"/>
<Codger label="Codice Gerarchia"/>
<Whatpre label="Tipo Prezzo">0</Whatpre>
<Prelis label="Prezzo Listino">5,70394</Prelis>
<Gesres label="Default Residuo">N</Gesres>
</Tabella>