EDN Admin
Well-known member
<span>
Hi,
I am trying to create xml file (xmlfile3) containing data from new(xmlfile2) xml files and all changes to get from old to new one (diffs):
<font color="#2b91af
<font size=2><font color="#2b91af DataSet</font> dsFile1 = <font color="#0000ff new</font> <font color="#2b91af DataSet</font>();</font>
<font size=2><font color="#2b91af DataSet</font> dsFile2 = <font color="#0000ff new</font> <font color="#2b91af DataSet</font>();</font>
<font size=2>dsFile1.ReadXml(xmlfile1, <font color="#2b91af XmlReadMode</font>.ReadSchema);</font>
<font size=2>dsFile2.ReadXml(xmlfile2, <font color="#2b91af XmlReadMode</font>.ReadSchema);</font>
<font size=2></font>
<font size=2>or </font> <font size=2>
dsFile1.ReadXml(xmlfile1, </font><font color="#2b91af" size=2>XmlReadMode</font><font size=2>.DiffGram);
dsFile2.ReadXml(xmlfile2, </font><font color="#2b91af" size=2>XmlReadMode</font><font size=2>.DiffGram); </font>
<font size=2></font>
<font size=2>and </font>
<font size=2>dsFile2.Merge(dsFile1, <font color="#0000ff true</font>);</font>
<font size=2>dsFile2.WriteXml(xmlfile3, <font color="#2b91af XmlWriteMode</font>.DiffGram);</font>
</font><font size=2> </font>
But my merge xml contain nothing but:
<font color="#0000ff" size=2>
<?</font><font color="#a31515" size=2>xml</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>1.0</font><font size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>standalone</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>yes</font><font size=2>"</font><font color="#0000ff" size=2>?>
<</font><font color="#a31515" size=2>diffgriffgram</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>xmlns:msdata</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>urnchemas-microsoft-com:xml-msdata</font><font size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>xmlnsiffgr</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>urnchemas-microsoft-com:xml-diffgram-v1</font><font size=2>"</font><font color="#0000ff" size=2> /> </font>
Any Ideas?
Sam.
View the full article
Hi,
I am trying to create xml file (xmlfile3) containing data from new(xmlfile2) xml files and all changes to get from old to new one (diffs):
<font color="#2b91af
<font size=2><font color="#2b91af DataSet</font> dsFile1 = <font color="#0000ff new</font> <font color="#2b91af DataSet</font>();</font>
<font size=2><font color="#2b91af DataSet</font> dsFile2 = <font color="#0000ff new</font> <font color="#2b91af DataSet</font>();</font>
<font size=2>dsFile1.ReadXml(xmlfile1, <font color="#2b91af XmlReadMode</font>.ReadSchema);</font>
<font size=2>dsFile2.ReadXml(xmlfile2, <font color="#2b91af XmlReadMode</font>.ReadSchema);</font>
<font size=2></font>
<font size=2>or </font> <font size=2>
dsFile1.ReadXml(xmlfile1, </font><font color="#2b91af" size=2>XmlReadMode</font><font size=2>.DiffGram);
dsFile2.ReadXml(xmlfile2, </font><font color="#2b91af" size=2>XmlReadMode</font><font size=2>.DiffGram); </font>
<font size=2></font>
<font size=2>and </font>
<font size=2>dsFile2.Merge(dsFile1, <font color="#0000ff true</font>);</font>
<font size=2>dsFile2.WriteXml(xmlfile3, <font color="#2b91af XmlWriteMode</font>.DiffGram);</font>
</font><font size=2> </font>
But my merge xml contain nothing but:
<font color="#0000ff" size=2>
<?</font><font color="#a31515" size=2>xml</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>1.0</font><font size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>standalone</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>yes</font><font size=2>"</font><font color="#0000ff" size=2>?>
<</font><font color="#a31515" size=2>diffgriffgram</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>xmlns:msdata</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>urnchemas-microsoft-com:xml-msdata</font><font size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>xmlnsiffgr</font><font color="#0000ff" size=2>=</font><font size=2>"</font><font color="#0000ff" size=2>urnchemas-microsoft-com:xml-diffgram-v1</font><font size=2>"</font><font color="#0000ff" size=2> /> </font>
Any Ideas?
Sam.
View the full article