How to convert Word to XML by command line?

Question: Word to XML converter - we need a solution that works on an internal CMS system so that it dynamically gets exported to XML. Do you guys have such software? If you do not have, can you customize one for us?

***************************************************************************************

Answer: According to your need, you can have a free trial of this software: VeryDOC Word to XML Converter. This software is command line version , which can be used to batch convert DOC, DOCX to XML file from PHP, VB and others applications. Through PHP, I guess you can make it work on an internal CMS system. In the following part, I will show you how to do the conversion from script.

First, download Word to XML Converter.

  • For facilitating uploading and downloading, we compressed this software to zip file. So after downloading, you will find a zip file.
  • Please extract the zip file to some folder and check the elements in it.

Second, convert word to XML following usage and examples.

Usage: DOC2Any [options] <in-file> [<out-file>]

  • When converting single word file to XML file, please refer to the following command line.
    doc2any.exe C:\in.doc C:\out.XML
  • doc2any.exe C:\in.docx C:\out.XML

  • When you need to do the batch conversion using wild characters, please refer to the following command line. By the following command line, you can convert a whole folder  or a directory doc file to XML file in batch.
    doc2any.exe C:\*.doc C:\*.XML

Note:when you convert doc file to XML, Office word application is not necessary to be installed. But when converting docx file to XML file, you need to install Office 2007 or later versions.

  • If you need to do the conversion together with other applications, please use the  developer version, which is licensed
  • by per Developer, Royalty Free Runtime Desktop Distribution, can be run on any number of servers/computers. There are many examples of calling from VB, VC, C++ and others, facilitating the conversion fast and easy.

Meanwhile this software also can be used to convert all the DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX files to PDF, Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX, etc. formats. And there is no language limitation. But if you use the trial version, it only converts first three pages of the file. When you use the registered version, this limitation will be removed. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!