最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
XmlTransform 对xml中的特定名称空间的元素进行填充
时间:2022-07-02 11:49:02 编辑:袖梨 来源:一聚教程网
using System;
using System.Xml;
namespace xmltest
{
///
/// XmlTransoform 的摘要说明。
///
public class XmlTransform
{
public XmlTransform()
{
}
public ITagControl CreateControl(string nsuri,string tag,string innerxml)
{
return new SimpleTagControl(innerxml);
}
public string Transform(string xml,string nsuri)
{
System.IO.StringReader sr = new System.IO.StringReader(xml);
XmlTextReader reader = new XmlTextReader(sr);
System.IO.StringWriter sw = new System.IO.StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
writer.Formatting=System.Xml.Formatting.Indented;
reader.Read();
while(!reader.EOF)
{
if(reader.NodeType==XmlNodeType.Element&&reader.NamespaceURI==nsuri)
相关文章
- 山海进化录捕捉完美犀牛方法攻略 10-15
- 迷途之光2025最新兑换码大全 10-15
- 偃武不同属性适配武将类型介绍 10-15
- 桃源深处有人家凤仙花育种攻略 10-15
- 盲盒派对七夕逆向推演通关攻略 10-15
- 胜利女神新的希望夏日版本换弹流配队 10-15