• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tool for converting Flat file to HTML

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
Can anyone tell me any tool which can be used to convert a flat file to HTML file or may be an XML file.

I am looking for a 3rd party tool, may be free tool.

So any thoughts on that.Please let me know if possible.
Saurabh
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since there were no responses for some time -

I would just write a Java/C++/C/Perl/??? program to read the file aas a string (assuming its not a huge file) and add a couple of head/body tags to make it HTML. This could also be called an XML file if you choose. This will be a solution to the use case described above.

If you need something more elaborate, then we need to discuss what exactly you have in mind. any special tags, any special formating you are looking for, stuff like that.

- m
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would you like to format the file as html/xml? Would each row of the file be 1 row in the tabular data and this data would also be 1 column? If it is a delimited file there are open source database drivers that treat them as a db table that you can query.

If you can get it into an array which should be pretty easy if you can tell us what you would like the array to look like then you could use my FormattedDataSet API to easily convert the data into html, xml or any other text you would like.
 
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic