Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xslt transformation output

From: noureensyed@-----.---
To: NULL
Date: 11/3/2005 11:16:00 AM
Hi there,


So I read up on transforming XMLs in c++ and am stuck at this one
particular point. I've done all things such as:


- initialize and load xml, xsl
- created xsl template, created processor
- set paramaters in xsl using addParam
- set the input by sending in xml to be transformed


The output is where I'm stuck. I need the output to be not a BSTR (as
shown in a lot of examples on the net) but an XML DOM object, so that I

can create an XML file from it. As suggested on various sites and
posts, I added the xsl:output tag to my xsl and set it to method="xml".

Then I created a CComVariant called outdoc and sent that into
m_pProcessor->put_output(outDoc). Now after the tranformation is done.
I guess outDoc should have my XML Dom object. How do I use it. I tried
casting it to a type. This type is a wrapper I created for working with

XML DOM objects, which doesn't work.


I see there is a lot of members of the CComVariant outdoc, can I use
one of them to extract the XML DOM object, or do I have to make use of
ChangeType? If so how do I do that? I tried this:


Wrapper_class output;
m_objSubXml = docOutput.ChangeType(output);


But I get the message that cannot convert parameter 1 from
Wrapper_class to VARTYPE.


Please help or point to a good site that may help. 


Thank you.



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