How to convert following XML tag into text with pipe delimited file using awk or sed. I tried with following awk but it didn't return full text from Content type tag. Any help would great.
Input_file.dat
        <entry>
            <updated>2014-05-17T16:34:00-07:00</updated>
                <id>994568497</id>
                <title>No longer usable</title>
                <content type="text">I happen to like the new look, but it crashes with each attempt to use it to perform any real action. Fix it quickly please!.</content>
                <im:contentType term="Application" label="Application"/>
                <im:voteSum>0</im:voteSum>
                <im:voteCount>0</im:voteCount>
                <im:rating>1</im:rating>
                <im:version>4.2.0.165</im:version>
                <author><name>Arcdouble</name><uri>https://test.com/us/reviews/id199894255</uri></author>
        </entry>
Expected output_file.csv format
|2014-05-17T16:34:00-07:00|994568497|No longer usable|I happen to like the new look, but it crashes with each attempt to use it to perform any real action. Fix it quickly please!.|1|Arcdouble|https://test.com/us/reviews/id199894255|