Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML, XSL and MSXML4.

Status
Not open for further replies.

VasaCheh

Technical User
Feb 19, 2003
8
US
I am generating xml and xsl documents from an Excel spreadsheet by using RustemSoft XML Converter.
I am trying to transform them within my ASP page by using the MSXML4 object.
Could somebody help me to figure out how to transform the two documents?
Thanx!
 
Hi VasaCheh,
Here is the code I am using within an ASP page to transform an XML & an XSL.
-------------------------------
Dim anXML, anXSL, anOut
set anXML = server.CreateObject("Msxml2.DOMDocument")
set anXSL = server.CreateObject("Msxml2.DOMDocument")

anXML.validateOnParse = True
anXSL.validateOnParse = True
anXML.async = False
anXSL.async = False

anXML.load(&quot;<yourFilePath>.xml&quot;)
anXSL.load(&quot;<yourFilePath>.xsl&quot;)

anOut = anXML.transformNode(anXSL)

Response.Write(anOut)
--------------------------------
I guess it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top