Skip to content

How to convert word doc into a xml doc in C#.net

santosh kumar

Asked Aug 28, 2007, 9:58 PM EDT2 answers
Share
LinkedInX
Hi,
please anyone let me know how to convert a word document into a xml doc in C#.net

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Use System.RunTime.InteropServices to create instance of MS Word, open the .doc file in the instance and then use SaveAs method of the instance to save opened document in xml format.
    0
  • 0
    use xml namespca. there is helper classes  xmlwriter,xmlreader,xmltextwriter.... read the doc with streamreader, and wrte with xml hlper classes
    0