also you can use
in c#(use XslTransform类)using System.Xml;
using System.Xml.Xsl;
using System.Xml.Xpath;string xmlPath=Server.MapPath("1.xml");
string xslPath=Server.MapPath("test.xsl");XPathDocument doc=new XPathDocument(xmlPath);
XslTransform transform=new XslTransform();
transform.Load(xslPath);XmlTextWrite writer=new XmlTextWrite(Response.OutPut);
writer.Formatting=Formatting.Indented;
writer.Indentation=4;
transform.Transform(doc,null,writer);
in c#(use XslTransform类)using System.Xml;
using System.Xml.Xsl;
using System.Xml.Xpath;string xmlPath=Server.MapPath("1.xml");
string xslPath=Server.MapPath("test.xsl");XPathDocument doc=new XPathDocument(xmlPath);
XslTransform transform=new XslTransform();
transform.Load(xslPath);XmlTextWrite writer=new XmlTextWrite(Response.OutPut);
writer.Formatting=Formatting.Indented;
writer.Indentation=4;
transform.Transform(doc,null,writer);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货