Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: transformNodeToobect

From: "Saju Paul" <saju_paul@----------.--.-->
To: NULL
Date: 1/25/2009 12:50:00 PM
Thanks for the reply. I got that sample to work. The problem was that it 
didnt like the header "the namespace and version tags" . I had created the 
XSLT using VS2005 which generated such a header. When I rearranged the 
header tags, it could successfully do the transformation.

Regards,
Saju
"Martin Honnen" <mahotrash@y...> wrote in message 
news:ujbG3FVfJHA.1288@T......
> Saju Paul wrote:
>
>> I am using MSXML2 and transformNodeToObject method to generate a html 
>> file in C++ app. The method returns S_OK but the file is empty. I tried 
>> using the same XML and XSLT files in a C# app and it correctly generates 
>> the html file.
>>
>> I have used the sample demonstration code available on 
>> http://www.informit.com/articles/article.aspx?p=169497&seqNum=2
>>
>> Any pointers as what could be going wrong.
>
> That article seems to transform XML to XML so using an MSXML DOM document 
> as the result object in transformNodeToObject works in that case. However 
> if you want to transform XML to HTML then you can't transform to an MSXML 
> DOM document as the HTML result is not well-formed XML. So you need to 
> transform to a different object like an ADODB.Stream or you need to use 
> transformNode instead to get a string result and use other APIs in C++ to 
> save that string to a file.
>
>
> -- 
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/ 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent