I'm working on creating a xml document for a project i'm working on and in it there is a tag that contains a large chunk of free text.
Is there anyway to insert newlines into this data?
currently i've been sticking the standard unix "\n" in there but it's not displaying in firefox when i view the xml document.
I've also tried [NEL] "CR+LF" and "
" the first two just displayed on the screen and the second didn't display.
Any ideas?
Thanks
Will
Newline in XML?
Moderator: General Moderators
-
waskelton4
- Forum Contributor
- Posts: 132
- Joined: Mon Sep 09, 2002 6:42 pm
nope.. it's not being rendered has html..
header is ...
Content-Type: text/xml
and firefox puts this text above the document..
This XML file does not appear to have any style information associated with it. The document tree is shown below.
not sure what that means.. but it's there
I've tried <br> but it didn't work either.. in fact that was what i originally sent to it in the first place..
I'm only using the browser to check on the file currently.. how it displays isn't really the most important thing i guess..
come to think of it.. when i view the page source all of the "\n" characters give new lines.. which might be enough for the purpose of this file..
Thanks for the reply.. I guess I should probably check with the application that is importing this xml file and see what it wants and worry less about how the text looks to me on the screen
ws
header is ...
Content-Type: text/xml
and firefox puts this text above the document..
This XML file does not appear to have any style information associated with it. The document tree is shown below.
not sure what that means.. but it's there
I've tried <br> but it didn't work either.. in fact that was what i originally sent to it in the first place..
I'm only using the browser to check on the file currently.. how it displays isn't really the most important thing i guess..
come to think of it.. when i view the page source all of the "\n" characters give new lines.. which might be enough for the purpose of this file..
Thanks for the reply.. I guess I should probably check with the application that is importing this xml file and see what it wants and worry less about how the text looks to me on the screen
ws