Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

html tags not getting parsed in output file  RSS feed

 
Ravi Shankarappa
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a small program to write out some data to a file and decided to use html tags to define the column headers. Code is as follows:


The output file is as follows:



The html tags are not parsed but are printed along with the headers. How do I have the html tags parsed correctly and have a well defined column headers?

Thanks
Ravi
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Shankarappa wrote:The html tags are not parsed but are printed along with the headers.

And this surprises you? They're Strings, and you've written them out to a file.

How do I have the html tags parsed correctly and have a well defined column headers?

As you've done it: you can't. A parsable HTML file can only have one <html> tag to my recollection.

Why don't you back up and explain what you're trying to do, rather than what you've done - which plainly doesn't work.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!