예제 #1
0
            public SinaHLEntryEx m_zodiac; // 生肖

            #endregion Fields

            #region Constructors

            public SinaHLDayEx(ZHtmlParser pr)
            {
                m_date        = new SinaHLEntryEx("公历","//*[@id=\"con01-0\"]/div[2]/div[2]/p/text()",0);
                m_solarDate   = new SinaHLEntryEx("公历", "//*[@id=\"con01-0\"]/div[2]/div[2]/p/text()", 0);
                m_lunarDate   = new SinaHLEntryEx("农历","//*[@id=\"con01-0\"]/div[2]/div[2]/p/text()", 1);
                m_yearOrder   = new SinaHLEntryEx("岁次","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[1]/td[2]/text()",0); // 注意:xpath 里的 tbody 须忽略!!!
                m_zodiac      = new SinaHLEntryEx("岁次","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[1]/td[2]/text()",1);
                m_monthOrder  = new SinaHLEntryEx("岁次","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[1]/td[2]/text()",2);
                m_dayOrder    = new SinaHLEntryEx("岁次","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[1]/td[2]/text()",3);
                m_birthGod    = new SinaHLEntryEx("日胎神占方","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[2]/td[2]/text()");
                m_fiveElem    = new SinaHLEntryEx("五行","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[3]/td[2]/text()");
                m_collide     = new SinaHLEntryEx("冲", "//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[4]/td[2]/text()");
                m_pengAvoid   = new SinaHLEntryEx("彭祖百忌","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[5]/td[2]/text()");
                m_goodAngelYi = new SinaHLEntryEx("吉神宜趋","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[6]/td[2]/text()");
                m_evilAngelJi = new SinaHLEntryEx("凶神宜忌", "//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[8]/td[2]/text()");
                m_Yi = new SinaHLEntryEx("宜","//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[7]/td[2]/text()");
                m_Ji = new SinaHLEntryEx("忌", "//*[@id=\"con01-0\"]/div[2]/div[2]/table/tr[9]/td[2]/text()");

                // 为Entry 实例的 Parser 对象赋值,将会同时完成相应数值的解析
                m_date.Parser = pr;
                m_solarDate.Parser = pr;
                m_lunarDate.Parser = pr;
                m_yearOrder.Parser = pr;
                m_zodiac.Parser = pr;
                m_monthOrder.Parser = pr;
                m_dayOrder.Parser = pr;
                m_birthGod.Parser = pr;
                m_fiveElem.Parser = pr;
                m_collide.Parser = pr;
                m_pengAvoid.Parser = pr;
                m_goodAngelYi.Parser = pr;
                m_evilAngelJi.Parser = pr;
                m_Yi.Parser = pr;
                m_Ji.Parser = pr;
            }
예제 #2
0
        public SinaHLEntryEx m_zodiac; // 生肖

        #endregion Fields

        #region Constructors

        public SinaHLDayEx()
        {
            m_date = new SinaHLEntryEx();
            m_solarDate = new SinaHLEntryEx();
            m_lunarDate = new SinaHLEntryEx();
            m_yearOrder = new SinaHLEntryEx();
            m_zodiac = new SinaHLEntryEx();
            m_monthOrder = new SinaHLEntryEx();
            m_dayOrder = new SinaHLEntryEx();
            m_birthGod = new SinaHLEntryEx();
            m_fiveElem = new SinaHLEntryEx();
            m_collide = new SinaHLEntryEx();
            m_pengAvoid = new SinaHLEntryEx();
            m_goodAngelYi = new SinaHLEntryEx();
            m_evilAngelJi = new SinaHLEntryEx();
            m_Yi = new SinaHLEntryEx();
            m_Ji = new SinaHLEntryEx();
        }