|
From: <jz...@xi...> - 2015-04-23 01:36:53
|
for some reasons I just can't duplicate teh problem... it works on my machine... are you sure this xml throws any exception? ----- Original Message ----- From: al...@sa... To: Cc: Sent:Wed, 15 Apr 2015 09:55:37 -0300 Subject:Re: [Vtd-xml-users] Internal vtd-xml errors reading XML (c-sharp) Thank you for responding to my request. Attached find a .CS file and an XML file to read. These are the same files which were attached to my message in the vtd-xml-users list. Let me know if you need any additional information Regards, Al Gidden ---------- ORIGINAL MESSAGE ----------- From: jz...@xi... [1] To: al...@sa... [2], vtd...@li... [3] Sent: Tue, 14 Apr 2015 21:25:57 -0500 Subject: Re: [Vtd-xml-users] Internal vtd-xml errors reading XML (c-sharp) > Plz send me a test case to help me reproduce the error... > > > ----- Original Message ----- > > From: al...@sa... [4] > > To: > > Cc: > > Sent:Tue, 14 Apr 2015 15:31:45 -0300 > > Subject:[Vtd-xml-users] Internal vtd-xml errors reading XML (c-sharp) > > We are trying to use C# to parse some small xml files. We have used VTD-XML in many other languages > and it has worked perfect for us. > > We noticed that with C# the VTD-XML parser will produce an error that is not an exception, and then > it will start to do odd things. > > A simple test class (Main()) is attached with an XML file that shows the error. > > When you run the code you will see an error in the debugger (not a thrown exception) right after > passing line 23: vtdGen.parse(false); [6] > > This is the complete error I got from VisualStudio and the Mono debuggers: > Exception:Thrown: "permature EOF reached, XML document incomplete" (com.ximpleware.EOFException) [7] > A com.ximpleware.EOFException [8] was thrown: "permature EOF reached, XML document incomplete" > > Just as a comparison, we can read the file in VTD-XML Java without any errors. > > We are using the libraries from ximpleware_2.11_csharp.zip [9]. We have .NET 4.5 and have tried Windows > 7 and Windows 8. We need to work with byte arrays to load vtd-xml. > > We have worked on this for over a week and cannot get anything to consistently load with VTD-XML C#. > No matter how the XML was created (ex: by hand or created from an XmlDocument), we seem to get the > EOF error all the time. > > We need to know what the error means and how to rectify it. Since there is no exception, it causes a > silent failure and poses a big problem. > > Thanks for any assistance, > Al > > ------- END OF ORIGINAL MESSAGE ------- Links: ------ [1] mailto:jz...@xi... [2] mailto:al...@sa... [3] mailto:vtd...@li... [4] mailto:al...@sa... [5] mailto:vtd...@li... [6] http:/// [7] http:/// [8] http://com.ximpleware.eofexception/ [9] http://csharp.zip/ |