Generating XML from a DATASET

M

Marco Roberto

Hi,

I am trying to generate the following XML from a DataSet. How can
I do that? Any clue? I tried to generate using a XSD, but the XML document
generated was different from the text below.

<?xml version="1.0"?>
<MENSAGEM>
<HEADER>
<MODULO codigo="FU"></MODULO>
</HEADER>
<INFORMACOES>
<REGISTRO>
<DT_MOVIMENTO>20031113</DT_MOVIMENTO>
<CD_CLIENTE>PATRIA HEDGE</CD_CLIENTE>
<CD_ATIVO>FUT DI1</CD_ATIVO>
<CD_VENCIMENTO>OUT4</CD_VENCIMENTO>
<IC_COMPRA_VENDA>V</IC_COMPRA_VENDA>
<QT_CONTRATOS>15</QT_CONTRATOS>
<VL_PRECO>86769.85</VL_PRECO>
<CD_CORRETORA>ADIPAR</CD_CORRETORA>
<IC_CORRETAGEM>S</IC_CORRETAGEM>
<IC_DAY_TRADE>N</IC_DAY_TRADE>
<PC_DEVOL_CORRET_IMP>99.5</PC_DEVOL_CORRET_IMP>
<BACLR_CD_CODCLR></BACLR_CD_CODCLR>
<BALOCUST_CD_CODLCC></BALOCUST_CD_CODLCC>
<CD_SUBSEG>RV3</CD_SUBSEG>
<DT_DIV></DT_DIV>
<CD_AGENTE_COMPENSACAO>ADIPAR</CD_AGENTE_COMPENSACAO>
</REGISTRO>
</INFORMACOES>
</MENSAGEM>

tks,

Marco
 
M

Miha Markic

Hi Marco,

You will have to either generate XML from dataset and then transform it,
perhaps using XSL
or do it manually.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top