homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

How do I keep linebreaks?

 12:49 am on Mar 29, 2006 (gmt 0)

Does anyone know how as easy as possible to keep the linebreaks in a raw text, I have manually added text into a XML file with linebreaks, but all shows up as one huge text with no linebreaks.

Also to mention that, I am using PHP 4 to manage XML.



 3:01 pm on Mar 29, 2006 (gmt 0)

Make sure your <xsl:output method="xml"> and try putting xml:space="preserve" on the root element of your source XML, e.g.

<mydoc xml:space="preserve">


 3:16 pm on Mar 29, 2006 (gmt 0)

Do i put these lines in a seperate file? I havent used XSL with my XML file and not sure how it works in PHP.


 3:32 pm on Mar 29, 2006 (gmt 0)

Sorry, outside my range. Maybe try the PHP forum?


 7:46 pm on Mar 30, 2006 (gmt 0)

I just posted in another thread about an article that I found that shows how to use XML/XSL transformations in PHP.

[webmasterworld.com ]


 1:15 am on Apr 1, 2006 (gmt 0)

Thanks for that, but didnt found a clear answer there.

What I know that should be possible to do with a XSLT. But how?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved