Problem Using MSXML to transform xmldocument

I am new to XML. I tried to write code in C++ that will transform a XML file into HTML. Here's what i did.

MSXML2::IXMLDOMDocumentPtr
xmlDoc("MSXML2.DOMDocument.4.0");
MSXML2::IXSLTemplatePtr
xslt("Msxml2.XSLTemplate.4.0");
MSXML2::IXMLDOMDocumentPtr
xslDoc("Msxml2.FreeThreadedDOMDocument.4.0");
MSXML2::IXSLProcessorPtr
xslProc("Msxml2.FreeThreadedDOMDocument.4.0");

xmlDoc->async = false;
bool ret = xmlDoc->load("xmlfile.xml");

xslDoc->async = false;
xslDoc->resolveExternals = false;
xslDoc->load("stylesheet.xsl");
xslt->stylesheet = xslDoc;

xslProc = xslt->createProcessor();

// Here's the problem
xslProc->input = xmlDoc ->Getxml();
xslProc->transform();

How do I set the xml file to be tranformed
If someone knows articles that can help me ...
[978 byte] By [krongsantily] at [2007-11-17 19:12:56]