public static void XMLToHTML()
{
XslCompiledTransform xsl = new XslCompiledTransform();
xsl.Load(sPShortXSL); // load xsl file
XPathDocument xml = new XPathDocument(sResultXML); // Result xml file
XmlTextWriter writer = new XmlTextWriter(sPShortHTML, Encoding.GetEncoding("GB2312")); // Encode to GB2312 for display Chinese
xsl.Transform(xml, writer); // Complement transfor
writer.Close();
}
[唐胡璐] - C#将QTP结果(XML+XSL文档)转换为HTML格式
最新推荐文章于 2014-12-30 11:06:08 发布