Merge 2 XML Documents using XSLT Transform

  • Thread starter Thread starter Muhammad Nasir Waqar
  • Start date Start date
M

Muhammad Nasir Waqar

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.
 
Muhammad Nasir Waqar said:
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.

something like:-


XslCompiledTransform trans = new XslCompiledTransform ()
trans.Load("your.xsl")

XslArgumentList args = new XslArgumentList ()

args.AddParam("param1", yourXMLDoc1);
args.AddParam("param2", yourXMLDoc2);

trans.Transform(yourXMLDocSeed, args, destStream);
 
Back
Top