troubleshooting Question

Xalan C++ problem

Avatar of amiry
amiry asked on
XML
5 Comments1 Solution285 ViewsLast Modified:
hi ,
i am using Xalan(C++) on windows (VS6.0 sp5.0 )
i am trying use an XSL transformer of type

XalanTransformer in a very straight forward way:

#include <Include/PlatformDefinitions.hpp>
#include <util/PlatformUtils.hpp>
#include <XalanTransformer/XalanTransformer.hpp>

void main()
{
     XMLPlatformUtils::Initialize();
     XalanTransformer::initialize();

     

     XalanTransformer theXalanTransformer;


     XSLTInputSource xmlIn("C:\\Xmls\\foo.xml");
     XSLTInputSource xslIn("C:\\Xmls\\foo.xsl");
     XSLTResultTarget xmlOut("C:\\Xmls\\out.xml");

     int theResult =
     theXalanTransformer.transform(xmlIn,xslIn,xmlOut);
     
}
i get an unhandled exception(access violation) in the last line. i am using xerces  with the compatible version to xalan .
the files foo.xml , foo.xsl are in the specified path.
what could be the problem ?

thanks a lot,
amir
ASKER CERTIFIED SOLUTION
zvonko

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros