Groups | Blog | Home
all groups > dotnet xml > july 2004 >

dotnet xml : ReadXML giving different results on different PCs


RM
7/10/2004 3:21:58 PM
I am using DataSet's .ReadXml() method to parse an XML file that has an
inline schema and Im getting "different" results on various machines
using the same myDataSet.ReadXml("myExample.xml").

Out of 5 test machines, my results are as follows.

1 Windows 2000 Server and
2 Windows XP Professional PC's
that parses the XML, builds 2 tables with appropriate format columns
(string, int, etc) and populates the tables with rows of data as expected.

1 Windows 2000 Server and
1 Windows XP Professional PC
that parses the XML, builds 2 tables with appropriate format colums
(string, int, etc) but does NOT populate the tables with any data.

I cannot seem to determine what the difference between the setups is
that's causing this. It's clearly not the OS. All machines have .NET 1.1
on them, on one of the non-working (no rows) machines I installed MDAC
2.8 and the latest MSXML parser, to no avail.

Attaching my XML for examination, it may not be very correct XML, Im not
sure, but I find it wierd either way that 5 machines build tables out of
it, but only 3 of the 5 actually populate the table with rows. Always
running the same EXE that calls the same ReadXml method on the same XML
file.

RM
7/11/2004 11:22:31 AM
I've fixed the problem to some extent, I found a solid schema validator
and it helped me isolated a couple of bugs in my XML, after fixing those
the XML loads fine in any of the 5 test machines.

I guess Im still bothered by "what is different" between the machines
where the attached XML would load into table rows on some, but not on
others. Im itching to know what is causing the difference between
machines when its clearly not the version of .NET or the OS.



[quoted text, click to view]
AddThis Social Bookmark Button