InfoPath-Add Newline In Multiline Text Box Using XML file (SharePoint)

Here, we will discuss how to add a new line in multiline textbox using XML file in InfoPath.
 
Let’s start to create the XML file with standard coding. Please follow the below steps to achieve this.
 
You can copy the code directly from here as well.
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <characters crlf=" "/>   
Now, your file is ready with code. Now, follow the below steps to implement this task.
  1. Upload your file under SharePoint Site Asset Library.
  2. Try to create a data connection with the connection type as retrieve data.
  3. Click on "Next" and choose the XML file option.
  4. Go to SP site asset and try to copy your XML file path and paste here.
  5. And, finish the Data Connection Creation here.
You have to create a simple text box control, go the textbox properties, and enable the multiline textbox. 
 
Now, you can manage the rule and apply the data connection for a new line in a multiline textbox. I hope your issue has been resolved now.
 
Please comment if you have any concerns or want to provide your feedback.