Hi all,
I wanted to share an encoding problem. I am using an XML Web Service in the
following way:
private void Button1_Click(object sender, System.EventArgs e)
{
// invoking the web service
localhost.WS_elnorte_articulo ws = new
localhost.WS_elnorte_articulo();
// get the XML from the SQL DB
XmlDocument doc = new XmlDocument();
doc.LoadXml(ws.ArticuloDatos());
// load the XSL Stylesheet
XslTransform transform = new XslTransform();
transform.Load(Server.MapPath("/WA_elnorte_articulo/xsl/nace4.xsl"));
// point to the XML and perform an XSLT
// using the XML Web Server Control
Xml1.Document = doc;
Xml1.TransformSource = "xsl\\nace4.xsl";
}
The thing is that I can't find out how to encode the output in the Web
Server Control, and this results in wrong XHTML results. Anyone any idea how
to force encoding here?
Thanx in advance for any help!
Regards, Pieter