In some situation we may get requirement like Converting XML to XML String for example a Web services or any external service will expects XMLstring as input at that time we need to parse input xml to xml string .we can do this in different ways I am sharing one of the possible solution .
using below method we can convert XML to xml string this method accepts three input


using below method we can convert XML to xml string this method accepts three input
- Data Object(Customer bo in this example)
- namespace
- type