Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Re: Using AltovaXML with C++/CLI (http://www.velocityreviews.com/forums/t650252-re-using-altovaxml-with-c-cli.html)

Martin Honnen 12-27-2008 05:04 PM

Re: Using AltovaXML with C++/CLI
 
Bubba wrote:

> Does anyone know if it is possible to use the Altova.AltovaXML.dll from
> within C++/CLI? If it is I'd be grateful for a code sample.


I have just tried that, it works. Here is a sample C++/CLI console
application that does an XSLT 2.0 transformation and writes the result
to the console:

// AltovaTest1.cpp : main project file.

#include "stdafx.h"

using namespace System;
using namespace Altova::AltovaXML;

int main(array<System::String ^> ^args)
{
Application^ app = gcnew Application();
app->XSLT2->InputXMLFileName = "c:\\input1.xml";
app->XSLT2->XSLFileName = "c:\\sheet1.xml";
Console::WriteLine(app->XSLT2->ExecuteAndGetResultAsString());
return 0;
}


--

Martin Honnen
http://JavaScript.FAQTs.com/


All times are GMT. The time now is 09:59 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.