How do I automate conversion from Word 2003 doc to xml?

  • Thread starter Thread starter Tom G.
  • Start date Start date
T

Tom G.

I have a program right now that processes Word XML documents. However, I
need a way to convert my Word Doc files to XML files so that this program
can process them. Is there a way that is faster and more reliable than
automating Word (opening the document and then saving it as XML). It needs
to run without user intervention.

Any ideas?

Thanks,

Tom G
 
Hi Tom,
I have a program right now that processes Word XML documents. However, I
need a way to convert my Word Doc files to XML files so that this program
can process them. Is there a way that is faster and more reliable than
automating Word (opening the document and then saving it as XML). It needs
to run without user intervention.
If the Word docuemnts are currently in Word's proprietary, binary file
format, then you basically have little choice but to open them in Word 2003
and "Save As" XML. This is one major reason the WordML format was introduced:
so that one can get into Word documents without having to automate the
application!

The only other possible approach would be to get hold of the BIFF (you have
to apply to Microsoft for that) and program an app in a language like C++.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
That is what I was afraid of.

I love working with WordML, now I just need to find a way to convince all of
our customers to use Word 2003 and save as xml , whish me luck. : )

Tom
 
Hi Tom,
I love working with WordML, now I just need to find a way to convince all of
our customers to use Word 2003 and save as xml , whish me luck. : )
Luck :-)!

Cindy Meister
 
Thanks for the luck. Perhaps if I spelled correctly, things would start
going my way. Please forgive my spelling of wish.
 
Back
Top