i m using TransformNodeToObject  but can get HTML,

Posted on 2003-03-03
Medium Priority
Last Modified: 2010-05-18
rsult.xml is returning me my XML packet , i want Html after transformation plz help
set Source = server.CreateObject("MSXML2.DomDocument")
Set stylesheet = server.CreateObject("MSXML2.DomDocument")    
Set result = server.CreateObject("MSXML2.DomDocument")
  Source.async = False
  Source.Load "e:\multitest\new\default.xml"

  stylesheet.async = False
  stylesheet.Load "e:\multitest\new\default.xsl"

  result.async = False
  result.validateOnParse = True
  Set objRoot = source.documentElement
  Call objRoot.transformNodeToObject(objRoot,result)
  Response.Write result.xml
Question by:qaziasim
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 14

Expert Comment

ID: 8055809
If the result is of result.xml is an empty string that means that you have a problem in the transformation.

There are three options :
1. XML not well formed.
2. XSL not well formed.
3. The transformation of the XML and the XSL is, indeed an empty string (no matching templates).

Try to debug and see if you have an errMsg in the result object.
LVL 27

Expert Comment

ID: 8056787
You should always check the results of the load opeations since almost anything can go wrong. Check that Source.ParseError.errorCode and stylesheet.ParseError.errorCode are both zero.
LVL 28

Expert Comment

ID: 8057013
MyHTMLCode = objRoot.transformNodeToObject(stylesheet)
Response.Write MyHTMLCode
LVL 27

Accepted Solution

BigRat earned 200 total points
ID: 8057104
Why are we doing a transformNodeToObject at all???

Response.write objRoot.transformNode(stylesheet)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question