Exemple #1
0
 public static DocNode Parse(List<string> contentLines, List<string> errorLines)
 {
     DocNode node = new DocNode();
     foreach (var line in contentLines)
     {
         try
         {
             node.Entities.AddRange(ParseLine(line));
         }
         catch (ArgumentException ex)
         {
             errorLines.Add(string.Format("in \"{0}\", {1}", line, ex.Message));
         }
     }
     return node;
 }
Exemple #2
0
        public static DocNode Parse(List <string> contentLines, List <string> errorLines)
        {
            DocNode node = new DocNode();

            foreach (var line in contentLines)
            {
                try
                {
                    node.Entities.AddRange(ParseLine(line));
                }
                catch (ArgumentException ex)
                {
                    errorLines.Add(string.Format("in \"{0}\", {1}", line, ex.Message));
                }
            }
            return(node);
        }