Renukavani 0 Junior Poster

Hi All,

I have xml file contains dtd decalartion and data with align, bullat etc. how to show xml file content into html page.

I used as

Set objXml = Server.CreateObject("Microsoft.XMLDOM")
                            objXml.async = False
                            objXml.load("D:\" & thing & ".xml") 
                            
                          strHTMLconversionTest = "<HTML>" & "<HEAD>" & "<BODY>"  
                          For i = 0 to objXml.documentElement.childNodes.length-1        
                            If objXml.documentElement.childNodes(i).hasChildNodes() Then
                                For j = 0 to objXml.documentElement.childNodes(i).childNodes.length-1
                                    
                                   IF LCASE(objXml.documentElement.childNodes(i).childNodes(j).nodeName) = "p" Then
                                        strHTMLconversionTest = strHTMLconversionTest & "<p>" & objXml.documentElement.childNodes(i).childNodes(j).text & "</p>"  
                                   Else
                                        strHTMLconversionTest = strHTMLconversionTest & "<p>" & objXml.documentElement.childNodes(i).childNodes(j).text & "</p>"  
                                   End IF and closing tag

Please help me how to bind xml conent into html format.

thanks