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.

Now, your file is ready with code. Now, follow the below steps to implement this task.

Upload your file under SharePoint Site Asset Library.
Try to create a data connection with the connection type as retrieve data.
Click on “Next” and choose the XML file option.
Go to SP site asset and try to copy your XML file path and paste here.
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.

SharePoint 2013 Hosting Recommendation’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.