• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

html tags not getting parsed in output file

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Goodbye moon men. Hello tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic