【问题标题】:How to pass a instance of XmlDocument to argumentTransformList?如何将 XmlDocument 的实例传递给 argumentTransformList?
【发布时间】:2011-01-28 17:01:09
【问题描述】:

我想将 XmlDocument 传递给 Xml asp 控件 类似的东西:

XmlDocument xmlDoc = new XmlDocument();
myXmlControl.TransformArgumentList.AddParam("xml_document_content",xmlDoc.innerXML);

为了像节点集一样使用xslt中的参数。

我该怎么做?

【问题讨论】:

  • 请告诉我们这个控件的作用。是服务器端还是客户端?

标签: c# asp.net xmldocument


【解决方案1】:

经过多次搜索,我终于使用了:

XmlDocument xmlDoc = new XmlDocument();
object param = xmlDoc.CreateNavigator().Evaluate("/");
myXmlControl.TransformArgumentList.AddParam("xml_document_content",param );

【讨论】:

    猜你喜欢
    • 2020-12-05
    • 2020-09-29
    • 1970-01-01
    • 1970-01-01
    • 2018-11-28
    • 1970-01-01
    • 1970-01-01
    • 2011-11-22
    • 1970-01-01
    相关资源
    最近更新 更多