xml用xsl转换时如何去掉空格(asp.net+C#)?
System.IO.StringWriter sw=new StringWriter();
System.Xml.Xsl.XslTransform xsl=new System.Xml.Xsl.XslTransform();
xsl.Load(Server.MapPath(xslpath));
xsl.Transform(xd.DocumentElement.CreateNavigator(),null,sw,null);
Response.ContentType="text/html";
Response.Write(sw.ToString());
sw.Close();
代码如上,但.net 转换后自动会加入缩进,我想没有任何缩进,该怎么做?