You must generate the XSL-file for your xml. There are
"rules" how to convert the xml to readable
"html-table".
For example the next xsl is for
TClientDataset.SaveToFile(xml):

  xslClientDataset = '<?xml version="1.0"?>'#13#10+
                     '<xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl";>'#13#10+
                     '  <xsl:template
match="/">'#13#10+
                     '   
<xsl:apply-templates/>'#13#10+
                     '  </xsl:template>'#13#10+
                     #13#10+
                     '  <xsl:template
match="DATAPACKET">'#13#10+
                     '    <table border="1">'#13#10+
                     '    <xsl:apply-templates
select="METADATA/FIELDS"/>'#13#10+
                     '    <xsl:apply-templates
select="ROWDATA/ROW"/>'#13#10+
                     '    </table>'#13#10+
                     '  </xsl:template>'#13#10+
                     #13#10+
                     '  <xsl:template
match="FIELDS">'#13#10+
                     '    <tr>'#13#10+
                     '   
<xsl:apply-templates/>'#13#10+
                     '    </tr>'#13#10+
                     '  </xsl:template>'#13#10+
                     #13#10+
                     '  <xsl:template
match="FIELD">'#13#10+
                     '    <th>'#13#10+
                     '    <xsl:value-of
select="@attrname"/>'#13#10+
                     '    </th>'#13#10+
                     '  </xsl:template>'#13#10+
                     #13#10+
                     '  <xsl:template
match="ROWDATA/ROW">'#13#10+
                     '    <tr>'#13#10+
                     '    <xsl:for-each
select="@*">'#13#10+
                     '      <td>'#13#10+
                     '      <xsl:value-of/>'#13#10+
                     '      </td>'#13#10+
                     '    </xsl:for-each>'#13#10+
                     '    </tr>'#13#10+
                     '  </xsl:template>'#13#10+
                     #13#10+
                     '</xsl:stylesheet>'#13#10;

PS: you may see the SMExport suite:
http://www.scalabium.com/sme
There is the engine for xml-generation including
xsl-scheme)

With best regards, Mike Shkolnik
EMail: [EMAIL PROTECTED]
http://www.scalabium.com

--- Marselle Caston <[EMAIL PROTECTED]> wrote:

> I am saving a DataSet to XML format using ADO my
> question is,Can anyone let me know if there is a
> Component out there that will convert xml into a web
> page and I mean one that will view the data in the
> xml file in readable format not in a TreeNode
> format..
> are there any free Delphi components that will
> convert xml to html. I need to know.. thanks...



                
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to