469,626 Members | 1,025 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Does system.xml have any way to transofrm data with an xswl style sheet using strings like MSXML2 does?

Does system.xml have any way to transofrm data with an xswl style sheet
using strings like MSXML2 does?

how to convert this to use System.XML so i do not depend on MSXML2 interop?

static public string XslTransform(string style, string strdata)
{
MSXML2.IXMLDOMDocument pDoc = new MSXML2.DOMDocumentClass();
pDoc.async = false;
pDoc.loadXML(strdata);
MSXML2.IXMLDOMDocument pTemplate = new MSXML2.DOMDocumentClass();
pTemplate.async = false;
pTemplate.loadXML(style);
strdata = pDoc.transformNode(pTemplate);
return strdata;
}
Feb 21 '06 #1
0 1192

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by TheKeith | last post: by
7 posts views Thread by Fabian Neumann | last post: by
8 posts views Thread by Colin Mc Mahon | last post: by
2 posts views Thread by genc ymeri | last post: by
2 posts views Thread by Roel Korsten | last post: by
8 posts views Thread by pamelafluente | last post: by
10 posts views Thread by pamelafluente | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.