G
Guest
I'm trying to use DataSet.Merge, but it works like an Append, and I don't
want this. I want to update dataset data.
I have two files with same fields and the same xml schema. For example:
File 1:
<?xml version="1.0" standalone="yes" ?>
<Traducao xmlns="http://www.tempuri.org/traducao.xsd">
<comp formulario="Form1" componente="btnOk" traducao="" id="-1">
<item>0</item>
<comp_Text>Ok</comp_Text>
</comp>
<comp formulario="Form1" componente="lblForm1" traducao="" id="-1">
<item>1</item>
<comp_Text>Formulário 1</comp_Text>
</comp>
</Traducao>
File 2:
<?xml version="1.0" standalone="yes" ?>
<Traducao xmlns="http://www.tempuri.org/traducao.xsd">
<comp formulario="Form1" componente="btnOk" traducao="Ok" id="-1">
<item>0</item>
<comp_Text>Ok</comp_Text>
</comp>
<comp formulario="Form1" componente="lblForm1" traducao="Form 1" id="-1">
<item>1</item>
<comp_Text>Formulário 1</comp_Text>
</comp>
</Traducao>
The difference between them, as you can see, is the attribute "traducaoo",
wich has value in the second file.
A intenção é pergar o dataset (que contem o arquivo1) e unir ao dataset2
(que contem o segundo arquivo), apenas atualizando os dados do primeiro
dataset - sem fazer append.
I want to take the first dataset (with contains the first file), and merge
with the second dataset (wich contains the second file), just updating the
registries - not appending them.
Can anyone help me?
want this. I want to update dataset data.
I have two files with same fields and the same xml schema. For example:
File 1:
<?xml version="1.0" standalone="yes" ?>
<Traducao xmlns="http://www.tempuri.org/traducao.xsd">
<comp formulario="Form1" componente="btnOk" traducao="" id="-1">
<item>0</item>
<comp_Text>Ok</comp_Text>
</comp>
<comp formulario="Form1" componente="lblForm1" traducao="" id="-1">
<item>1</item>
<comp_Text>Formulário 1</comp_Text>
</comp>
</Traducao>
File 2:
<?xml version="1.0" standalone="yes" ?>
<Traducao xmlns="http://www.tempuri.org/traducao.xsd">
<comp formulario="Form1" componente="btnOk" traducao="Ok" id="-1">
<item>0</item>
<comp_Text>Ok</comp_Text>
</comp>
<comp formulario="Form1" componente="lblForm1" traducao="Form 1" id="-1">
<item>1</item>
<comp_Text>Formulário 1</comp_Text>
</comp>
</Traducao>
The difference between them, as you can see, is the attribute "traducaoo",
wich has value in the second file.
A intenção é pergar o dataset (que contem o arquivo1) e unir ao dataset2
(que contem o segundo arquivo), apenas atualizando os dados do primeiro
dataset - sem fazer append.
I want to take the first dataset (with contains the first file), and merge
with the second dataset (wich contains the second file), just updating the
registries - not appending them.
Can anyone help me?