Parser.ParserBase.Parse C# (CSharp) Method

Parse() public method

Parses the specified text.
public Parse ( string text ) : void
text string
return void
        public void Parse(string text)
        {
            #region Check the arguments

            if (text == null)
                throw new ArgumentNullException("text");

            #endregion

            fParsedDocument = new XmlDocument();
            XmlNode myRootNode = fParsedDocument.CreateElement(cRootXmlNodeName);
            fParsedDocument.AppendChild(myRootNode);

            try
            {
                ParseBlock(myRootNode, null, text, 0);
            }
            catch
            {
                fParsedDocument = null;
                throw;
            }

            // m_ParsedDocument.Save(@"D:\Temp\ParserTest.xml");
        }