|
From: <jz...@xi...> - 2015-04-25 03:14:51
|
I double checked, vtdGen.parse() does not throw any errors... are you having the latest version? ----- Original Message ----- From: al...@sa... To: Cc: Sent:Thu, 23 Apr 2015 10:04:58 -0300 Subject:Re: [Vtd-xml-users] Internal vtd-xml errors reading XML (c-sharp) Thank you for looking into this issue. The exception shows up in a debugger as an 'unmanaged' exception. You can tell VisualStudio to stop on these type of errors, but not MonoDevelop. When I put a breakpoint on this line: vtdGen.parse(false); [1] and Step to the next instruction you will see the error(s) in the debugger on the stack. We have since tried 32-bit systems and .NET 4.0, but it does not change anything. Problem is the same in VisualStudio 2012 and VisualStudio 2013, and the current release of MonoDevelop (XamarinStudio) as well. Regards, Al Gidden ---------- ORIGINAL MESSAGE ----------- From: jz...@xi... To: al...@sa..., vtd...@li... Sent: Wed, 22 Apr 2015 20:36:46 -0500 Subject: Re: [Vtd-xml-users] Internal vtd-xml errors reading XML (c-sharp) > 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... [2] > To: al...@sa... [3], vtd...@li... [4] > 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... [5] > > > > 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); [7] > > > > This is the complete error I got from VisualStudio and the Mono debuggers: > > Exception:Thrown: "permature EOF reached, XML document incomplete" (com.ximpleware.EOFException) [8] > > A com.ximpleware.EOFException [9] 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 [10]. 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 ------- > ------- END OF ORIGINAL MESSAGE ------- Links: ------ [1] http:/// [2] mailto:jz...@xi... [3] mailto:al@saladforkranchcom [4] mailto:vtd...@li... [5] mailto:al...@sa... [6] mailto:vtd...@li... [7] http:/// [8] http:/// [9] http://com.ximpleware.eofexception/ [10] http://csharp.zip/ |