Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Developer's Guide

Output

The XSLT project outputs an HTML file, stocks.xml, in the project's main directory. In addition to this file, the application produces the following XSLT-related output in a console window. Note that the formatting of the transformNode output is different from that of the transformNodeToObject output.

output from transformNode:
<HTML>
<BODY>
<TABLE BORDER="2">
<TR>
<TD>Symbol</TD>
<TD>Name</TD>
<TD>Price</TD>
</TR>
<TR STYLE="color:
          green" Title="ZCXM is listed on the nyse stock exchange.">
<TD>ZCXM</TD>
<TD>zacx corp</TD>
<TD>28.875</TD>
</TR>
<TR STYLE="color:
          red" Title="ZFFX is listed on the nasdaq stock exchange.">
<TD>ZFFX*</TD>
<TD>zaffymat inc</TD>
<TD>92.250</TD>
</TR>
<TR STYLE="color:
          green" Title="ZYSZ is listed on the nasdaq stock exchange.">
<TD>ZYSZ*</TD>
<TD>zysmergy inc</TD>
<TD>20.313</TD>
</TR>
<TR STYLE="color:
          green" Title="zzzz is listed on the nasdaq stock exchange.">
<TD>zzzz*</TD>
<TD>new</TD>
<TD>20.313</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Output from transformNodeToObject:
<HTML>
        <BODY>
                <TABLE BORDER="2">
                        <TR>
                                <TD>Symbol</TD>
                                <TD>Name</TD>
                                <TD>Price</TD>
                        </TR>
                        <TR STYLE="color:&#xA;    green" Title="ZCXM is listed on the nyse stock exchange.">
                                <TD>ZCXM</TD>
                                <TD>zacx corp</TD>
                                <TD>28.875</TD>
                        </TR>
                        <TR STYLE="color:&#xA;    red" Title="ZFFX is listed on
the nasdaq stock exchange.">
                                <TD>ZFFX*</TD>
                                <TD>zaffymat inc</TD>
                                <TD>92.250</TD>
                        </TR>
                        <TR STYLE="color:&#xA;    green" Title="ZYSZ is listed o
n the nasdaq stock exchange.">
                                <TD>ZYSZ*</TD>
                                <TD>zysmergy inc</TD>
                                <TD>20.313</TD>
                        </TR>
                        <TR STYLE="color:&#xA;    green" Title="zzzz is listed o
n the nasdaq stock exchange.">
                                <TD>zzzz*</TD>
                                <TD>new</TD>
                                <TD>20.313</TD>
                        </TR>
                </TABLE>
        </BODY>
</HTML>
The above output is also saved in stocks.htm.

The next topic in this tutorial demonstrates how to create an XML DOM object dynamically.