• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert Word to XML

 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to convert a word document(which follows a standard template) into an XML document. Right now I am doing it manually by inserting the defined set of XML tags. Is there a way to automate this process of inserting XML tags based on the WORD template. Is there any tool available in market. Or we need to write a program(like in C or C#) to accomplish this. Any suggestion, welcome.
I have a general XSL which will be used to all XML documents(converted from word). Our final aim is to come up with a knowledge management system, with search capabilities, discussion forums etc.
Thanks,
Rajan
 
ib idris
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about the.doc format, but there is a free java package out there for RTF.
http://galileo.spaceports.com/~ibidris/
[ September 18, 2003: Message edited by: ib idris ]
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://jakarta.apache.org/poi/index.html
HTH
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the XML forum.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Geoff Oakham is writing a tool called doc2xml, which converts .doc files into XML. There are also some Windows/Office products/plugins for converting .doc files into XML as well. Google will help with those.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could download the OpenOffice package of applications. OO has been able to open every Word document I have thrown at it, and it can then save the file in various formats including XML.
http://www.openoffice.org/
I have also done this sort of conversion by saving the file from Word as text (with character replacement allowed to fix those accursed "smart" quotes) - If the template has been followed correctly, a Java program to reformat the text can be pretty simple.
Bill
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this ...
 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for everyone's suggestions. I have not looked into the suggested tools/websites. Will let you know the results afterwards.
I tried with XML Spy. It has a facility to take a Word document as input and convert it to an XML document. The problem being, the converted XML is not WELL FORMED always.
I am interested in a tool which will convert based on the XSD I have. Bit tough, but somewhere there should be one. The search continues.
Rajan
[ September 18, 2003: Message edited by: Rajan Thiyagarajan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic