2011年9月22日
摘要: 在xml文件中,如果要引入样式表xsl,就必须有这样一句:<?xml-stylesheet type="text/xsl" href="sample.xsl"?>如果我们要用c#来添加样式表,那么方法如下: XmlDocument doc = new XmlDocument(); doc.Load(xmlFile); // Add xsl style to the .xml XmlProcessingInstruction xmlXsl = doc.CreateProcessingInstruction("xml-styleshee 阅读全文
posted @ 2011-09-22 10:21 halia 阅读(749) 评论(0) 推荐(0) 编辑