echo "<book>sss<page>page1</page><page>page2</page>ssss</book>" | awk 'BEGIN{FS="<page>";RS="</"}$NF&&$NF!~/.*>.*/{print $NF}'
page1
page2
cat urfile|sed 's,<page>,/n,g;s,</page>,/n,g'|grep -v "<"
echo "<book>sss<page>page1</page><page>page2</page>ssss</book>" | awk 'BEGIN{FS="<page>";RS="</"}$NF&&$NF!~/.*>.*/{print $NF}'
page1
page2
cat urfile|sed 's,<page>,/n,g;s,</page>,/n,g'|grep -v "<"