public override void Parse()
        {
            _xmlDocument.Load(_fileName);

            foreach (XmlNode node in _xmlDocument.DocumentElement.ChildNodes)
            {
                XmlEventLogRecord eventLogRecord = XmlEventLogRecord.Fetch(node);
                eventLogRecord.ContainingFile = this;
                _records.Add(eventLogRecord);
            }
        }
        public static XmlEventLogRecord Fetch(XmlNode xmlNode)
        {
            //ComputerName, [Logfile], [CategoryString], Type, User, [EventCode], SourceName, EventIdentifier, Message, [RecordNumber], TimeGenerated
            XmlEventLogRecord eventLogRecord = new XmlEventLogRecord();

            eventLogRecord._computer      = xmlNode.SelectSingleNode(COMPUTER_XPATH).InnerText;
            eventLogRecord._type          = getEventLogEntryType(xmlNode.SelectSingleNode(EVENT_TYPE_XPATH).InnerText);
            eventLogRecord._user          = xmlNode.SelectSingleNode(USER_XPATH).InnerText;
            eventLogRecord._source        = xmlNode.SelectSingleNode(EVENT_SOURCE_XPATH).InnerText;
            eventLogRecord._eventId       = Int32.Parse(xmlNode.SelectSingleNode(EVENT_ID_XPATH).InnerText);
            eventLogRecord._message       = xmlNode.SelectSingleNode(EVENT_MESSAGE_XPATH).InnerText;
            eventLogRecord._generatedTime = parseDateTime(xmlNode.SelectSingleNode(GENERATED_TIME_XPATH).InnerText);
            return(eventLogRecord);
        }
 public static XmlEventLogRecord Fetch(XmlNode xmlNode)
 {
     //ComputerName, [Logfile], [CategoryString], Type, User, [EventCode], SourceName, EventIdentifier, Message, [RecordNumber], TimeGenerated
     XmlEventLogRecord eventLogRecord = new XmlEventLogRecord();
     eventLogRecord._computer = xmlNode.SelectSingleNode(COMPUTER_XPATH).InnerText;
     eventLogRecord._type = getEventLogEntryType(xmlNode.SelectSingleNode(EVENT_TYPE_XPATH).InnerText);
     eventLogRecord._user = xmlNode.SelectSingleNode(USER_XPATH).InnerText;
     eventLogRecord._source = xmlNode.SelectSingleNode(EVENT_SOURCE_XPATH).InnerText;
     eventLogRecord._eventId = Int32.Parse(xmlNode.SelectSingleNode(EVENT_ID_XPATH).InnerText);
     eventLogRecord._message = xmlNode.SelectSingleNode(EVENT_MESSAGE_XPATH).InnerText;
     eventLogRecord._generatedTime = parseDateTime(xmlNode.SelectSingleNode(GENERATED_TIME_XPATH).InnerText);
     return eventLogRecord;
 }