per page, with , order by , clip by
Results of 1 - 2 of about 2 for decl (0.002 sec.)
html.parser --- HTML と XHTML のシンプルなパーサー 11228
html.parser --- HTML と XHTML のシンプルなパーサー ソースコード: Lib/html/parser.py このモジュールでは HTMLParser クラスを定義します。このクラスは HTML (ハイパーテキスト記述言語、HyperText Mark-up Language) および XHTML で書式化されているテ ... E9-specific content<![endif]--> に対しては、 '[if IE 9]>IE9-specific content<![endif]' を受け取ります。 HTMLParser. handle_decl ( decl ) このメソッドは HTML doctype 宣言を扱うために呼び出されます (例: <!DOCTYPE html> )。 引数 decl は <!...> マークアッ ... ML の構文を使用します。末尾に '?' がある XHTML の処理指令では、 '?' が data に含まれることになります。 HTMLParser. unknown_decl ( data ) このメソッドはパーサーが未知の宣言を読み込んだ時に呼び出されます。 パラメータ data は <![...]> マークアップ内の宣 ... startswith ( 'x' ): c = chr ( int ( name [ 1 :], 16 )) else : c = chr ( int ( name )) print ( "Num ent :" , c ) def handle_decl ( self , data ): print ( "Decl :" , data ) parser = MyHTMLParser () doctype の解析: >>> parser . feed ( '<!DOCTYPE HTML PU ...
https://man.mtool.work/python/3.14/library/html.parser.html
xml.parsers.expat --- Expat を使用した高速な XML 解析 7485
xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt ... 、基底 URI を設定します。相対識別子の解決はアプリケーションに任されます: この値は関数 ExternalEntityRefHandler() や NotationDeclHandler() , UnparsedEntityDeclHandler() に引数 base としてそのまま渡されます。 xmlparser. GetBase ( ) 以前の SetBase() によ ... RefHandler を呼び出します。XML文書が文書型定義を持っていなければ、 ExternalEntityRefHandler が呼び出しますが、 StartDoctypeDeclHandler と EndDoctypeDeclHandler は呼び出されません。 flag にfalseを与えると、メソッドが前回呼ばれた時のtrueの設定が解除され ... 数を受理する呼び出し可能なオブジェクトでなければなりません。引数は特に明記しない限り、すべて文字列となります。 xmlparser. XmlDeclHandler ( version , encoding , standalone ) Called when the XML declaration is parsed. The XML declaration is the (optional ...
https://man.mtool.work/python/3.14/library/pyexpat.html
PREV 1 NEXT