1
Reply

Easy XML question (when you know it!)

Tim.Field

Tim.Field

Oct 21 2004 5:11 AM
1.6k
Very easy for those that know.... I have an XML document and an XSLT document and I'd like to transform them. I've been doing this in XML Spy (a seperate application and it's working) now I'm moving the code into C#... something like this? // The files... string sXmlPath = @"C:\aaa\atftestfileOk.xml"; // XML File with data string sXslPath = @"C:\aaa\atf_to_dataset.xml"; // XSLT File XslTransform xslt = new XslTransform(); // transform object xslt.Transform(sXmlPath, sXslPath, null); // INCORRECT ! WHAT GOES HERE....? I'd like to output to a text file (or even the console, I'd just like to see the results). Thanks, Tim

Answers (1)