[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]:
>=20
>>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.
>=20
>=20
> <ot>Heh, I've once written a parser in C++. I can tell you that are som=
e
> very obscure corners wrt. to stylesheets and graphics.</ot>
>=20
> The first thing I'd do is fire up Google:
>=20
>     Searched the web for rtf2xml.   Results 1 - 10 of about 3,340.
>     Search took 0.10 seconds.
>=20
> 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.

--=20
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/