Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: Using AltovaXML with C++/CLI

Reply
Thread Tools

Re: Using AltovaXML with C++/CLI

 
 
Martin Honnen
Guest
Posts: n/a
 
      12-27-2008
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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a Link Button to redirect to another page by using data from =?Utf-8?B?R1REcml2ZXI=?= ASP .Net 1 02-16-2005 07:04 PM
Error page using the Application_Error void dosnt work when using DIV for a please wait message s_erez@hotmail.com ASP .Net 2 12-24-2004 12:11 PM
no code in webform using vs.net, but in webform using notepad timmso ASP .Net 1 12-12-2003 04:30 PM
Using GetOleDbSchemaTable to get SQL Server Field Description - using pete ASP .Net 1 08-29-2003 10:50 AM
Re: MVP? Index error on nested element using System.xml but NOT using msxml??? William F. Robertson, Jr. ASP .Net 1 06-25-2003 08:08 PM



Advertisments