Paul Clapham wrote:Why don't you just generate XHTML, then, since the API you have found works with that?
I am formatting as HTML with my following method:
main method gets data from database and format as html
my nullCheck method:
If your input comes from something which generates HTML which isn't well-formed XML, and you don't have any control over that, then why don't you just convert it to XHTML using something like JTidy?
Please check my above code and let me know still I need JTidy because I am formatting data explicitly
Thanks again