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)