Please give me some idea of how to convert the data in this format to XML format

Code:
[DATA]
data1
[ENTRY]
entrying here
[STORY]
story details
where the output looks like this

Code:
<?xml version="1.0"?>
<DATA>data1</DATA>
<ENTRY>entrying here</ENTRY>
<STORY>Story details </STORY>