Word to XML

Eivind

Usenet Archive
Joined
Apr 29, 2005
Messages
8
Reaction score
0
Hi,

I'm in the process of making an application that should convert a Word-document into XML. The Word files will use style names such as Heading1, Heading2 etc. Since the application has to work on both Macs and PCs I cannot use Word 2003 XML-features. Now I'm a little uncertain on how to "attack" this problem. As far I can see, I have two solutions:

a) Tag the text manually in Word, using VBA.
b) Extract all text from Word, into a Java application that makes the XML-file.

I'm currently leaning towards b), because of Javas XML-features and flexibilty. (And because I think using just VBA will be a lot of work.)

Any thoughs or suggestion? Should I use XSL-FO?
 

Stefan Ram

Usenet Archive
Joined
Sep 3, 2001
Messages
3,281
Reaction score
0
Eivind said:
I'm in the process of making an application that should convert a Word-document into XML. The Word files will use style names such as Heading1, Heading2 etc. Since the application has to work on both Macs and PCs I cannot use Word 2003 XML-features. Now I'm a little uncertain on how to "attack" this problem. As far I can see, I have two solutions:
a) Tag the text manually in Word, using VBA.

An example of a VBA program "Wrocco" to do this and some links to relevant sources can be found on:

http://www.purl.org/stefan_ram/pub/wrocco_en
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top