Mostrando postagens com marcador html editing. Mostrar todas as postagens
Mostrando postagens com marcador html editing. Mostrar todas as postagens

sábado, 26 de março de 2011

HTML vs. XML reports: how to choose what's best for you


We all know HTML reports are popular for displaying online content: being extremely flexible, they allow many different types of information to be displayed in a semi-automatic way. However, they are as easy to get wrong as they are to generate: tables can behave differently in different browsers; boxes may be out of place, or some of your text may even not show at all. Should this happen, your company may get a bad reputation it does not deserve.

So, is there a way out?
As a matter of fact, yes, there is: you can implement a XML reporting system. Similar to HTML, XML reports also use tags, but they have many additional points in their favor:

  • XML reports are much cleaner than HTML reports are. 
  • They can be customized to suit your needs, as you can create your own tags
  • Like HTML reports, XML reports can be viewed in a browser, but, unlike them,  they can be used as the source for many formats of online and offline content. 
  • Finally, should things go wrong, you usually can edit your XML reports by hand, as many programs generate clear, human-readable output. 
Let's be realistic: although HTML is here to stay, XML reporting tools are getting more and more promising by the hour: as you read this article, these programs are getting easier and easier to use, and supporting more and more formats. 

The bottom line is: if you were to choose, what should you choose? 

If you were to choose, certainly choosing a XML report system is the way to go: not only XML reports are more versatile than HTML, but this system can also generate HTML reports itself should you need them. Certainly, the cost of implementing this kind of system is much higher; however, if you can invest into it, affording the time, money and complexity required this is the way to go if you need your documents available in 10 different formats and then some. Although you will spend a while training yourself and your employees, opting for XML reports, in fact, will certainly save you money in the long run.

HTML vs PDF reports: which one should you choose?


Ever since the Internet was acknowledged as a commercial success, circa 1944-1995, it has been regarded as a near-universal online reading format: it is flexible and has a simple syntax and loose conventions, ever-allowing the expansion of its standards; therefore, it's no wonder it is being widely used and accepted since then.

As HTML is so flexible and so easy to understand, it is no wonder that HTML reporting has been created: HTML reports, combined with CSS, allow the display of your data in multiple ways, changing just a few lines of code. Don't like the fact that your tables have an orange header when they should have a blue one? No problem: just change the CSS, and done.

An HTML report, however, has many shortcomings: it is hard to print, there is no guarantee of consistency among different computers, and layout freedom is very limited compared to a PDF reporting. Long story short, HTML reporting is very good for what it is intended for, but were you to print them, you should have too many headaches.

Well, as it was briefly mentioned before, what about layout freedom? If you ever wanted your document to have an specific feel, making it more light-hearted and bubbly, serious, modern – be it as you wish – you know well what I am talking about: in HTML, fonts are restricted to a set of common widely-used fonts, as Arial, Tahoma, Verdana or Courier. Do you think you can easily use Helvetica as text easily when writing an HTML report? Think again. You can use it, that's for sure – but using them is very much of a hassle compared to PDF, and this can also bring legal issues. Let's not talk about object positioning either: using something as simple as MS Word, you can post a photo virtually anywhere in your document, something that cannot be guaranteed when you choose for HTML reporting.

So, which one should you choose? HTML reports or PDF reports? The answer is simple: choose both of them. HTML reports and PDF reports do not oppose each other: rather, they complement each other. And with a good conversion tool, you will surely generate terrific content both for online HTML reports and offline PDF reports.