G
Guest
Hi,
I am trying to create an html based on two main objevts: XslTransform and
XmdTextWrite via asp.net2003 application.
I keep getting a strange msg: "Access to the path... is denied".
Here is my method:
-----------------------
XmlDataDocument xmlDoc=
new XmlDataDocument();
xmlDoc.DataSet.ReadXml(Server.MapPath("test.xml"));
XslTransform tran=
new XslTransform();
tran.Load(Server.MapPath("test.xsl"));
XmlTextWriter w=new
XmlTextWriter(Server.MapPath("test.html"),System.Text.Encoding.UTF8);
tran.Transform(xmlDoc,
null,w);
w.Close();
I am trying to create an html based on two main objevts: XslTransform and
XmdTextWrite via asp.net2003 application.
I keep getting a strange msg: "Access to the path... is denied".
Here is my method:
-----------------------
XmlDataDocument xmlDoc=
new XmlDataDocument();
xmlDoc.DataSet.ReadXml(Server.MapPath("test.xml"));
XslTransform tran=
new XslTransform();
tran.Load(Server.MapPath("test.xsl"));
XmlTextWriter w=new
XmlTextWriter(Server.MapPath("test.html"),System.Text.Encoding.UTF8);
tran.Transform(xmlDoc,
null,w);
w.Close();