Line Break in XML?

Posted by ew89 on Stack Overflow See other posts from Stack Overflow or by ew89
Published on 2010-06-06T23:07:37Z Indexed on 2010/06/06 23:12 UTC
Read the original article Hit count: 359

Filed under:
|
|
|
|

Hello,

I'm a beginner in web development, and I'm trying to insert line breaks in my XML file. This is what my XML looks like: Song Title Lyrics

<song>
  <title>Song Title</title>
  <lyric>Lyrics</lyric>

<song>
  <title>Song Title</title>
  <lyric>Lyrics</lyric>

<song>
  <title>Song Title</title>
  <lyric>Lyrics</lyric>

I want to have line breaks in between the sentences for the lyrics. I tried everything from /n, and other codes similar to it, PHP parsing, etc., and nothing works! Have been googling online for hours and can't seem to find the answer. I'm using the XML to insert data to an HTML page using Javascript.

Does anyone know how to solve this problem?

Thanks before :)

© Stack Overflow or respective owner

Related posts about html

Related posts about Xml