。 using System; using System.Xml; using System.IO; using System.Text; public class Test2{ static string ipKey; static string httpMethodKey; static string fileKey; static string dateKey; static string referrerKey; public static void WriteAttributes(XmlReader reader, XmlWriter writer){ if(reader.MoveToFirstAttribute()){ do{ writer.WriteAttributeString(reader.Prefix, reader.LocalName, reader.NamespaceURI, reader.Value); }while(reader.MoveToNextAttribute()); reader.MoveToElement(); } } public static void WriteEvent(XmlWriter writer, string ip, string httpMethod, string file, 页码:[1] [2] [3] [4] [5] [6] [7] [8] 第6页、共8页 |