> Has anyone developed, or is anyone developing, or is anyone interested
> in developing, an MSword.doc or MSword.rtf convertor to XML in a
> Frontier or Radio Script?
>
> Does anyone have any suggestions for doing this automatically, like a
> scriptable application that can do the conversion under the control of
> an script?
What constraints do you have to live with? If you're on Windows and
have a copy of Office available, you can probably use its COM
interface to generate XML. I'm guessing you'd need to get Word to
load the file and give you some sort of document object, and then get
it to save it back out as XML.
If it has to work without Word, but you know you're on Windows, you
might be able to get at the 'structured storage' (OLE document) API to
load the document. That's probably a COM thing too.
If it has to work without Word, and work everywhere, check out libole2
- you might be able to build a DLL that can read the Word files. Call
into that to read them, and dump out the XML inside your script.
I think there's another Office file reading library too, but I don't
know what it's called. Java has POI, which will do it, but the C
libraries should be way easier to integrate into Frontier.
Cheers,
Phil