Link to home
Start Free TrialLog in
Avatar of Ching Tello
Ching TelloFlag for United States of America

asked on

How to convert XML to something else using xslt stylesheet in C++

Is it true that XslCompiledTransform is the solution?  Any examples?  I tried to use XslCompiledTransform in my c++ code but compiling failed. I don't know how to enable CRL in my VS 2002.  Please help.
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
not sure there is a XslCompiledTransform  implementation in C++
Is your C++ code managed or not? I believe it is not, because of that old VS version. In this case I would recommend to use the MSXML COM API instead the .net CLR API.
Check the following link for examples and API references:
https://msdn.microsoft.com/en-us/library/ms762799%28v=vs.85%29.aspx
Avatar of Ching Tello

ASKER

XslCompiledTransform  doesn't pass the compiler.  Thanks for all the replies.  I will read the links.
please post the c++ code and the error message.

vs2002 is the first visual studio that contains both managed c++ and normal c++. don't know why you want to use XslCompiledTransform.

if you link against the msxml.lib you would be able to read any xml within an unmanaged c++ project (win32 or console).

Sara
I don't have the code yet.  I don't need to use XslCompiledTransform.  I just want to find a way to convert xml to another xml using XSL template.  I am using C++ VS 2002.  Any examples will be helpful.  Thanks
Thank you for the link which contains the examples that I need.