Free Support Forum - aspose.com

Word doc to xml

in this aspose article you convert a word doc to xml.

http://www.aspose.com/documentation/.net-components/aspose.pdf-for-.net/use-aspose-word-to-create-xml-template.html

can you tell me how you got from step1 to the xml in step 2? all i see is when saving a word doc as xml you get word xml and it is nothing like the xml in the article.

Thanks

Hi

Thanks for your inquiry. Currently the latest version of Aspose.Words supports direct conversion to PDF (without saving into intermediate XML format and using Aspose.Pdf). Old legacy method was excluded from the latest version.

You can use Aspose.Words to convert documents to WordML format, which is actually an XML. You can use the following code to convert your document:

// Open DOC document

Document doc = new Document("in.doc");

// Convert to WordML

doc.Save("out.xml", SaveFormat.WordML);

Best regards,