rtf2xml -- dump an RTF document's structure as XML
% cat foo.rtf {\stylesheet{\fs20 \snext0 Normal;}} % rtf2xml < foo.rtf <_><stylesheet/><_><fs _='20'/><snext _='0'/>Normal;</_></_>
This program is a filter that takes an RTF stream on STDIN and emits its document tree structure as XML on STDOUT. It assumes that the input is well-formed RTF.
Copyright (c) 2000 Sean M. Burke. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Sean M. Burke sburke@cpan.org