[XML-SIG] converting rtf to xml

M.-A. Lemburg mal@lemburg.com
Thu, 06 Jun 2002 20:00:46 +0200

Gerhard H=E4ring wrote:
> * Paul Tremblay <phthenry@earthlink.net> [2002-06-06 12:37 -0400]:
>>I am struggling to get a java utility called majix to work. This
>>utility is supposed to convert rtf files to xml.
>>I was wondering if there is any similar python utility?=20
>>I have just discovered (last night!) that rtf files are
>>relatively structured.
> <ot>Heh, I've once written a parser in C++. I can tell you that are som=
> very obscure corners wrt. to stylesheets and graphics.</ot>
> The first thing I'd do is fire up Google:
>     Searched the web for rtf2xml.   Results 1 - 10 of about 3,340.
>     Search took 0.10 seconds.
> Maybe this helps.

Another approach: use the RTF parser in mxTextTools or simply
use COM to have Word generate HTML which you then pass through
mxTidy to generate XHTML.

Marc-Andre Lemburg
CEO eGenix.com Software GmbH
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/