using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Xsl;
using System.Xml.XPath;
using System.IO;
- 중간 생략 -
public XmlElement ......
{
XmlDocument docXml = new XmlDocument();
XslCompiledTransform xslt = new XslCompiledTransform();
StringWriter stringWriter = new StringWriter();
docXml = new XmlDocument();
docXml.PreserveWhitespace = false;
docXml.LoadXml(resultXML);
xslt.Load(Server.MapPath("XSLTDefault.xslt"));
xslt.Transform(docXml, null, stringWriter);
docXml.LoadXml(stringWriter.ToString());
return docXml.DocumentElement;
}