Line breaks in XML not showing in browser but OK in view source -
I have created an XML file and one of the nodes contains the data that I have in line with a special way Rhymes / new lines:
This should be the first line / it should be the second line
When I load XML in the browser source But I can copy and paste the data with maintained maintenance. Although it is provided in the browser as much:
This should be the first line, it should be a second line
Any ideas?
There is nothing in XML that will assist you with text formatting in the browser. If you want to format XML data in the browser, you should convert XML to HTML and apply the approved HTML tags, which will format the text as you would like it to be displayed.
Comments
Post a Comment