StreamReader stmReader = new StreamReader(flNameIs); String xsltData = stmReader.ReadToEnd(); xsltData = xsltData.Replace("xsl:", ""); xsltData="<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>"+xsltData; stmReader.Close(); StreamWriter writer = new StreamWriter(tempFlName); writer.Write(xsltData); writer.Flush(); writer.Close(); XElement doc = XElement.Load(tempFlName); doc.RemoveAnnotations IEnumerable<XElement> e1 =from match in doc.Descendants("stylesheet").Descendants("template") select match;
xml
n1:
name space
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)