Doc(RTF) -> XML with Java

I need to convert a word document into xml using Java...any ideas?  I want to have total control over what in the word doc is converted...primarily i will want to ignore most of the data expect that which has been interested into fields by the user.  I will specify a special style for these fields in word, such as style = Company Name...and then i need something to convert this field into an xml tag company name.  Any one know of any open source projects in java that would help me with this task?

menreeqAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Listening...
0
menreeqAuthor Commented:
What does "Listening..." mean?
0
CEHJCommented:
Waiting for comments
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

menreeqAuthor Commented:
sweet
0
shji1Commented:
Some source I found for reading RTF files. MAybe you will find it useful...

http://www.cs.umb.edu/~bill/java/jdk1.3/src/javax/swing/text/rtf/

Strangly enough, these classes are in the language, but I could not find them in the API....
I wonder
0
girionisCommented:
 You can use Majix by IBM: http://www-106.ibm.com/developerworks/xml/library/x-tiprtf/ and you can download it from here: http://tetrasys.dhs.org/

  Hope it helps.
0
girionisCommented:
> You can use Majix by IBM

  Sorry, it is by TetraSix and not by IBM. It's just the review of Majix on IBM's site.
0
menreeqAuthor Commented:
girionis, i have tried to use that software but it does not provide me with the flexibility that i require.  

What do you guys think about using macros in the word doc to some how capture the data in the form in a fashion that would allow me to easily recapture it when i need to process the form?  i have never ever used macros...nor do i know much about it.

shji1, i am going to look into your suggestion now.
0
girionisCommented:
 Sorry menreeg I have never actually used ms word macros with java so I am unable to offer you anyhelp.

  Some more links that *might* be of interest to you though:

http://www.idealliance.org/papers/xmle02/dx_xmle02/papers/02-06-03/02-06-03.html
http://www.jguru.com/faq/view.jsp?EID=213149
http://www.rtf2fo.com/
0
menreeqAuthor Commented:
i don't think there is a good solution to my question, i am going to ask the admin to del it
0
simonletterCommented:
I haven't work with OpenOffice before but it might help. http://www.openoffice.org. Download the ODK.

Have a look at OOo_1.0.2beta_Win32Intel_odk\OpenOffice.org1.0.2_Beta_SDK\examples\java\DocumentConverter\DocumentConverter.java

I think you'll need to start soffice or something that works as a UNO server whatever that is. So you'll write the client to get soffice to open the Word doc. I'm not sure what the API allows you to do.
0
menreeqAuthor Commented:
Well i found a good solution...I am using c# to access the word file where in less then 10 lines i was able to read each field and write my txt file...thanks for trying to help
0
NetminderCommented:
User resolved; points refunded and question closed.

Netminder
EE Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.