The XMLDOM
object has methods to work the xml file easily. You can use these methods
and iterate through the nodes of the xml file and display them by transforming
them using an xsl file.
_______________________________________________
_______________________________________________
The
general algorithm to do so is to load the xml and the xsl file in their
respective objects. Go to the root node of the xml document and get
all the nodes in a variable. Find the length of the variable in which
you have all the nodes.
This gives
you the number of nodes you have. Now iterate through the nodes and
display the result. While displaying the result use the xsl file to
transform the data that you get.
The objects
that you use are the xmldom objects. One is to load the xml file and
the other is to load the xsl file. The method to select the nodes in
the xml file is selectNodes of the xmldom object. Use the transformNode
method to pass the xsl file as an argument to it and transform the result
and display using the Response.Write method.