Spire.DataExport for .NET is a 100% pure data .NET library suit for exporting data into MS Word, Excel, RTF, Access, PDF, XPS, HTML, XML, Text, CSV, DBF, SYLK, SQL Script, DIF, Clipboard, etc.
Tue Apr 19, 2016 5:50 am
Hi,
I am having problem with converting to DBF attached xml file. The xmlfile came from a .Net dataset using DataSet.WriteXml. Below code:
DataSet dt = new DataSet();
dt.ReadXml("test.xml"); //attached file
dbfExport1.DataSource = Spire.DataExport.Common.ExportSource.DataTable;
dbfExport1.DataTable = dt.Tables[0];
dbfExport1.FileName = "test.dbf";
dbfExport1.SaveToFile();
The error is: Client found response content type of "text/html" but expected "text/xml". The request failed with the error: Parse Error.
The same program is working when tested on the datatable with 5000 rows.
Thank you!
- Attachments
-
test.zip
- sample file for export
- (1.5 MiB) Downloaded 4174 times
-

arlandeluta
-
- Posts: 2
- Joined: Fri Mar 29, 2013 6:29 am
Tue Apr 19, 2016 7:36 am
Hello,
Thanks for your feedback.
I tested your xml file with your code and the latest version
Spire.DataExport for .NET (Hot Fix) Version: 3.5.10. It was converted to DBF successfully. Please try the version. In addition, the generated DBF file only can show the forty rows of data without applying a license.
Sincerely,
Caroline
E-iceblue support team
-


caroline.zhang
-
- Posts: 291
- Joined: Mon Mar 07, 2016 9:22 am
Thu Apr 21, 2016 7:57 am
Hi,
Did you try the version? Has your issue been resolved?
Thanks for your feedback.
Best Regards,
Caroline
E-iceblue support team
-


caroline.zhang
-
- Posts: 291
- Joined: Mon Mar 07, 2016 9:22 am
Wed Nov 19, 2025 11:52 am
Ugh, a DBF parse error sounds frustrating!
I've seen these pop up before. A lot of times, the quickest way to get a fix is to send the specific DBF file that's causing the issue, or the full code snippet you're using, over to their support email. That usually lets them pinpoint the problem right away! Hope you get it sorted out soon.
-

Skylar31
-
- Posts: 15
- Joined: Mon Oct 13, 2025 8:37 am