Re: [Corpora-List] Looking for a XML to TEXT convertor/editor

From: Oliver Mason (O.Mason@bham.ac.uk)
Date: Mon Nov 27 2006 - 17:54:16 MET

  • Next message: Xiaofei Lu: "[Corpora-List] 2nd CFP: HLT/NAACL-07 Workshop on Computational Approaches to Figurative Language"

    With sed it's even easier...

    cat yourxmltext | sed 's/<[^>]*>//g' > yourplaintext

    This removes everything in '<..>'; not as complete as Lou's earlier
    suggestion regarding XSLT, but I guess it wins the prize for the
    shortest solution...

    Oliver

    On 27/11/06, Daniel Zeman <zeman@ufal.mff.cuni.cz> wrote:
    > If you have Perl on your machine (default on Linux), the attached Perl
    > script could help you.



    This archive was generated by hypermail 2b29 : Mon Nov 27 2006 - 17:52:05 MET