コード例 #1
0
        new public void Parse()
        {
            if (XML.ReadState == ReadState.Closed)
            {
                return;
            }

            while (!XML.EOF && CurrentItem == null)
            {
                if (!inMiddleOfSection)
                {
                    CurrentSection = GetSectionType(XML.Name);
                }
                if (CurrentSection == Section.Junk)
                {
                    XML.Read();
                }
                else if (CurrentSection == Section.Unknown)
                {
                    SkipSection();
                }
                else
                {
                    ParseSection();
                }
            }

            if (XML.EOF)
            {
                XML.Close();
            }
        }