コード例 #1
0
        public int ExtractMmsiFromHtml(string html_document_1)
        {
            if (_creator.CreateNodeCollection(html_document_1) != null)
            {
                foreach (HtmlNode row in _creator.CreateNodeCollection(html_document_1))
                {
                    if (_stringParser.IsContainingMmsi(row.InnerHtml))
                    {
                        return(_stringParser.ParsedInt(_stringParser.GetTrimmedMmsi(row.InnerHtml)));
                    }
                }
            }

            return(0);
        }