hitode909の日記

趣味はマリンスポーツですの日記です

火曜日

こんなかんじでパースするのができた.諸事情あってこういうことをしないと立ち行かなくなっていて,とはいえ書いてみたら無事動いたのでよかった.タグの入れ子はまだ見れてないので今日やりたい.

(XRT::Statement::Document:[(XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:!DOCTYPE html), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:html), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
    ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:head), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:title), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Directive:[% title %]), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/title), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:meta charset="utf-8"/), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:link rel="stylesheet" type="text/css" href="/css/style.css" /), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
    ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/head), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
    ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:body), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:header id="global-header"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Block:[(XRT::Statement::Directive:[% IF c.user %]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Text:ようこそ), (XRT::Statement::Whitespace: ), (XRT::Statement::Directive:[% c.user.name | html %]), (XRT::Statement::Whitespace: ), (XRT::Statement::Text:さん |), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:a href="/bookmark/add"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Text:作成), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/a), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace: ), (XRT::Statement::Text:|), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:a href="/"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Text:一覧), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/a), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace: ), (XRT::Statement::Text:|), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Directive:[% ELSE %]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:a href="/login"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Text:ログイン), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/a), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::End:[% END %])]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/header), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:

        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:div id="content"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Block:[(XRT::Statement::Directive:[% IF c.user %]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Directive:[% content %]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Directive:[% ELSE %]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:p), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:a href="/login"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Text:ログイン), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/a), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Text:しないと使えません!), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/p), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::End:[% END %])]), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/div), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:

        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:footer id="global-footer"), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
            ), (XRT::Statement::Text:Hatena), (XRT::Statement::Whitespace:
        ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/footer), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
    ), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/body), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
), (XRT::Statement::Tag:[(XRT::Statement::TagStart:<), (XRT::Statement::Text:/html), (XRT::Statement::TagEnd:>)]), (XRT::Statement::Whitespace:
)])