Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 8 Jul 2008 11:59:08 +0600,    group: microsoft.public.xsl        back       


Merge 2 XML Documents using XSLT Transform   
Hi,

I have an XSLT which merges 2 XML Documents provided as input parameters. I 
want to use that XSLT in my dot net code(C#). Please help me that how can I 
handle this situation.

--
Kind Regards,
Muhammad Nasir Waqar
date: Tue, 8 Jul 2008 11:59:08 +0600   author:   Muhammad Nasir Waqar

Re: Merge 2 XML Documents using XSLT Transform   
"Muhammad Nasir Waqar"  wrote in message 
news:OTYQ0%23L4IHA.784@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I have an XSLT which merges 2 XML Documents provided as input parameters. 
> I want to use that XSLT in my dot net code(C#). Please help me that how 
> can I handle this situation.
>
> --
> Kind Regards,
> Muhammad Nasir Waqar
>
Assuming you want to stick with the built-in classes then:
Create a new instance of XslCompiledTransform
use the Load method to load the XSLT (You'll need to use the overload that 
takes an XsltSettings class as you need to allow the document function.
Use the Transform method. You may need to pass a dummy XML source document 
as your XSLT doesn't actually use one.
More here 
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.aspx

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name
date: Tue, 8 Jul 2008 08:55:03 +0100   author:   Joe Fawcett am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us