# How to convert a message to XML data format

In this tutorial we will be converting a valid xml string in the message to javascript object.

Following is the input xml string which we will be using in this use case.

<Records>
 <EmpName>Jack</EmpName>
 <EmpNo>1234</EmpNo>
 <Building>West</Building>
 <EmpName>Harry</EmpName>
 <EmpNo>1789</EmpNo>
 <Building>East</Building>
</Records>
 

Link to video