public static void Process(SubreportController sc, XmlWriter xmlw) { foreach (string Subreport in sc.GetSubreportNames()) { xmlw.WriteStartElement("Subreport"); Process(sc.GetSubreport(Subreport), xmlw); ReportDefModel.ProcessSubreportLinks(sc.GetSubreportLinks(Subreport), xmlw); xmlw.WriteEndElement(); } }