aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Newline character in table content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Newline character in table content" Watch "Newline character in table content" New topic
Author

Newline character in table content

Robby Jain
Greenhorn

Joined: Apr 30, 2012
Posts: 9
i have a table and it is populated using dom now elements in dom contain \n
i require that where there is \n it should act as new line character help !!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

In HTML, <br /> serves as a new line. Can you do a string search and replace to convert to the HTML new line?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Technically, in HTML it's <br>. <br/> is XHTML notation.

In preparation for HTML5, people should stop thinking along the XHTML lines.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newline character in table content
 
Similar Threads
JDBC -con.string from xml
DOM to string
Need help with XSLT
Converting Document to String
DOM non validation parsing