how to convert .doc file to xml file
i need to convert word document to xml file to use it in my c# application in the help button
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kurt AmbrosePosted Apr 30, 2021, 2:49 PM
Using the LEADTOOLS SDK you could perform the conversion of several document types include MS Word Doc to XML through the use of the DocumentConverter class. Do note this is a paid for SDK and I work for this vender.
Below is a link to a small tutorial to convert files in a Console C# application
https://www.leadtools.com/help/sdk/v21/tutorials/dotnet-console-convert-files-with-the-document-converter.html
Abhijeet SinghPosted Mar 31, 2014, 6:44 AM
http://stackoverflow.com/questions/11932163/how-to-convert-doc-docx-into-a-single-xml-file-automatically
It may help you.
Posted Mar 31, 2014, 4:31 AM
Ring ZhongPosted Oct 11, 2013, 4:34 AM
the full code here
using System;
using System.Windows.Forms;
using Spire.Doc;
using Spire.Doc.Documents;
namespace toXML
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//Create word document
Document document = new Document();
document.LoadFromFile(@"D:\Sample.doc");
//Save doc file.
document.SaveToFile("Sample.xml", FileFormat.Xml);
//Launching the MS Word file.
WordDocViewer("Sample.xml");
}
private void WordDocViewer(string fileName)
{
try
{
System.Diagnostics.Process.Start(fileName);
}
catch { }
}
}
}
the original tutorial here http://www.e-iceblue.com/Knowledgebase/Spire.Doc/Program-Guide/How-to-Convert-Word-Document-to-XML.html
selva kumarPosted Oct 10, 2013, 7:38 AM
http://forums.asp.net/t/1709976.aspx
http://www.dotnetfunda.com/forums/show/9322/how-to-convert-word-to-xml-in-csharp