How to remove string in xml with xslt

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
Thanks for reading my question...
im working on transforming one xml to another xml using xslt.
below is my code.

StringBuilder oSB = new StringBuilder();<br/>
XmlDocument xDoc = new XmlDocument();<br/>
xDoc.LoadXml( sSourceXML );<br/>
XslCompiledTransform myXslTrans = new XslCompiledTransform();<br/>
myXslTrans.Load( sXsltPath );<br/>
System.IO.StringWriter SW = new System.IO.StringWriter(oSB);<br/>
XmlTextWriter myWriter = new XmlTextWriter(SW);<br/>
myXslTrans.Transform(xDoc, null, myWriter);<br/>
return oSB.ToString();
im getting a result xml with below string.
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/
i want to be removed above string in my result xml..
can u show me how to do this... <hr class="sig AnilJayanti

View the full article
 
Back
Top