Hi all,

        I have an xml file with some information inside it. I want to load this xml during runtime and generate an equivalent HTML document for this xml file. All this needs to be done programatically and on the fly during runtime. How could i do this? 

I'm using QT widget and this is a part of Help Documentation for my cutom widget.
I hope someone can help me with this.

Take a look at XSLT, that's exactly what it's designed for.
There should be a C++ library for it, for example http://xalan.apache.org/xalan-c/ (though it's older) and some C++ systems no doubt come with XSLT processors built in (like Visual Studio).