I want to Copy Whole Word document Content to XML in C#

Recommended Answers

All 2 Replies

>I want to Copy Whole Word document Content to XML in C#

Office Interop API.

As adatapost pointed out, you should use Office Interop API to open the document using Microsoft Word and the use SaveAs() as XML and you're done. It's just couple of lines of code. Just get used with Office Interop API. It's a lot of fun to me (in the most cases :) ).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.