Spilt the line into two....

Hi,
Can you please help with reading a file and formatting it by removing the new lines between <record> and </record? tags.

The input file is as below:
<record>123
xxxxx
<abc>
</record>
<record>456
yyyy
<xxx>
</record>

the expected output is:
<record>123xxxxx<abc></record>
<record>456yyyy<xxx></record>

Thanks!

awk '{ printf "%s" , $0 } /<\/record>/ { print "" }'