shell scripts help

Hi, I am not experienced in shell scripts, I hope someone can give some hint for the following problem

I have html file like this

<html>
<body>
Some stuff
More stuff
<pre>
A
B
</pre>
Still more stuff
And more
<pre>
C
D
</pre>
Additional stuff
</body>
</html>

I want to write the script to red this file and dump out
The items within the <pre> tags. For example, the output for the above file
shouild be

A
B
C
D

Thanks

Angela

nawk '/<pre>/,/<\/pre>/' ccp.txt | grep -v 'pre'

Just to be safe:
nawk '/<[pP][rR][eE]>/,/<\/[pP][rR][eE]>/' ccp.txt|egrep -vi '<[/]?pre>'

Differences from previous:
(a) Since html is case insensitive wrt its tags, this accounts for case insensitive "PRE"
(b) while using grep -v, we might not want to use "pre" as the string, as this might accidentally leave out a lot of lines.