per page, with , order by , clip by
Results of 1 - 10 of about 20 for Document (0.005 sec.)
xml.dom --- ドキュメントオブジェクトモデル API 15209
xml.dom --- ドキュメントオブジェクトモデル API ソースコード: Lib/xml/dom/__init__.py 文書オブジェクトモデル (Document Object Model)、すなわち "DOM" は、ワールドワイドウェブコンソーシアム (World Wide Web Consortium, W3C) による、XML ドキュメ ... して解析を行うかについては DOM レベル 1 では全くカバーしておらず、レベル 2 では限定的な改良だけが行われました: レベル 2 では Document を生成するメソッドを提供する DOMImplementation オブジェクトクラスがありますが、実装に依存しない方法で XML リーダ(reader)/パ ... ーザ(parser)/文書ビルダ (Document builder) にアクセスする方法はありません。また、既存の Document オブジェクトなしにこれらのメソッドにアクセスするような、よく ... で IDL の厳密な対応付けをサポートするのは自由ですが)。API への対応付けに関する詳細な議論は 適合性 を参照してください。 参考 Document Object Model (DOM) Level 2 Specification Python DOM API が準拠している W3C 勧告。 Document Object Model (DOM) Level 1 Spec ...
https://man.mtool.work/python/3.14/library/xml.dom.html
xml.dom.minidom --- 最小限の DOM の実装 10892
xml.dom.minidom --- 最小限の DOM の実装 ソースコード: Lib/xml/dom/minidom.py xml.dom.minidom は Document Object Model インターフェースの最小限の実装で、他の言語の実装と同様の API を備えています。 完全な DOM より単純で、大幅に小さい実装を目指 ... を引数にとることができます。 xml.dom.minidom. parse ( filename_or_file , parser = None , bufsize = None ) 与えられた入力から Document を返します。 filename_or_file はファイル名でもファイルオブジェクトでもかまいません。 parser を指定する場合、SAX2 パーザオブ ... る場合、 parseString() を代わりに使うことができます: xml.dom.minidom. parseString ( string , parser = None ) string を表わす Document を返します。このメソッドは、文字列に対する io.StringIO オブジェクトを作成し、それを parse() に渡します。 これらの関数は両方 ... とも、文書の内容を表現する Document オブジェクトを返します。 parse() 関数と parseString() 関数は、XML パーザを「DOM ビルダー」に接続します。 このビルダーは SA ...
https://man.mtool.work/python/3.14/library/xml.dom.minidom.html
xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート 8683
xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート Source code: Lib/xml/dom/pulldom.py xml.dom.pulldom モジュールは「プルパーザ」を提供し、必要に応じて、文書の一部分を DOM でアクセスできる形で生成するよう要求できます。 基本的な考え方は、 ... ており、 PullDOM に渡された DOM 実装によって作成されます。 デフォルトの実装は xml.dom.minidom です。 xml.dom.pulldom. START_DOCUMENT xml.dom.pulldom. END_DOCUMENT 文書の開始と終了です。 node は Document です。 xml.dom.pulldom. START_ELEMENT xml.dom.pulldo ... 、 DOMEventStream.expandNode() メソッドを使って DOM による処理に切り替える必要があります。 class xml.dom.pulldom. PullDOM ( documentFactory = None ) SAX イベントをプルパーザのイベントに変換する、 xml.sax.handler.ContentHandler のサブクラスです。 ノードは作 ... 成しますが、 expandNode() を呼び出さない限り木には追加しません。 documentFactory を指定する場合は、文書を作成するための DOM 実装を渡します。 デフォルトでは xml.dom.minidom の実装を使います。 class ...
https://man.mtool.work/python/3.14/library/xml.dom.pulldom.html
xml.etree.ElementTree --- ElementTree XML API 8683
xml.etree.ElementTree --- ElementTree XML API Source code: Lib/xml/etree/ElementTree.py xml.etree.ElementTree モジュールは、XML データの解析と作成を行うシンプルで効率的な API を実装しています。 バージョン 3.3 で変更: このモジュールは利用出来 ... 1/XInclude}include 要素を使い、 parse 属性を "xml" に設定し、 href 属性で取り込む文書を指定します。 <?xml version="1.0"?> <document xmlns:xi= "http://www.w3.org/2001/XInclude" > <xi:include href= "source.xml" parse= "xml" /> </document> デフォルトでは hr ... t to the xml.etree.ElementInclude module: from xml.etree import ElementTree , ElementInclude tree = ElementTree . parse ( "document.xml" ) root = tree . getroot () ElementInclude . include ( root ) ElementInclude モジュールは {http://www.w3.org/2001/XInc ... lude}include 要素を、 source.xml 文書のルート要素で置き換えます。 結果は例えば次のようになります。 <document xmlns:xi= "http://www.w3.org/2001/XInclude" > <para> This is a paragraph. </para> </document> parse 属性を省略すると、デフ ...
https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
Python インタプリタの拡張と埋め込み 8462
Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The ... document also describes how to embed the Python interpreter in another application, for use as an extension language. Finally, it s ...
https://man.mtool.work/python/3.14/extending/
What's New in Python 2.0 8224
What's New in Python 2.0 著者 : A.M. Kuchling and Moshe Zadka はじめに 新 Python リリース、バージョン 2.0 は、2000 年 10 月 16 日にリリースされました。この記事では 2.0 のエキサイティングな新機能をカバーし、いくつかの有用な変更点をハイライト ... ました。 SAX2 (Simple API for XML のバージョン 2) は xmllib と似た点のあるイベント駆動のインターフェースを提供します。 DOM (Document Object Model) は XML 文書を走査や変更が可能なノードのツリーに変換する、ツリーに基づいたインターフェースです。 Python 2.0 で ... キュメント、または https://pyxml.sourceforge.net/topics/howto/xml-howto.html の XML HOWTO を参照してください。 DOM サポート Document Object Model は XML 文書をツリーで表現するものです。 最上位の Document インスタンスがツリーの根となり、最上位の Element イ ... 関数 parse() と parseString() が用意されています。 from xml.dom import minidom doc = minidom . parse ( 'hamlet.xml' ) doc は Document のインスタンスです。 Document は、 Element や Text など他の DOM クラスと同様、基底クラス Node のサブクラスです。 そのため ...
https://man.mtool.work/python/3.14/whatsnew/2.0.html
xml.sax.handler --- SAX ハンドラーの基底クラス 8156
xml.sax.handler --- SAX ハンドラーの基底クラス ソースコード: Lib/xml/sax/handler.py SAX API は、コンテンツハンドラ、DTD ハンドラ、エラーハンドラ、エンティティリゾルバ、字句ハンドラの 5 種類を定義しています。 通常、アプリケーションは必要なイ ... になっています。パーサは入力ドキュメントのイベントにより、それぞれに対応する以下のメソッドを呼び出します: ContentHandler. setDocumentLocator ( locator ) アプリケーションにドキュメントイベントの発生位置を指すロケータを与えるためにパーサから呼び出されます。 ... SAX パーサによるロケータの提供は強く推奨されています(必須ではありません)。もし提供する場合は、DocumentHandler インターフェースのどのメソッドよりも先にこのメソッドが呼び出されるようにしなければなりません。 パーサがエラーを報告 ... ンターフェースからイベントの呼出しが実行されている間だけです。それ以外のときは使用すべきでありません。 ContentHandler. startDocument ( ) ドキュメントの開始通知を受け取ります。 SAX パーサはこのインターフェースやDTDHandler のどのメソッド ( setDocumentLocato ...
https://man.mtool.work/python/3.14/library/xml.sax.handler.html
Pythonモジュール索引 8156
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... nerate byte-code files from Python source files. pyclbr Supports information extraction for a Python module browser. pydoc Documentation generator and online help system. q queue A synchronized queue class. quopri Encode and decode files using the MIME q ... validate WSGI conformance checker. x xdrlib 非推奨: Removed in 3.13. xml Package containing XML processing modules xml.dom Document Object Model API for Python. xml.dom.minidom Minimal Document Object Model (DOM) implementation. xml.dom.pulldom Support f ...
https://man.mtool.work/python/3.14/py-modindex.html
構造化マークアップツール 8072
構造化マークアップツール Python は様々な構造化データマークアップ形式を扱うための、様々なモジュールをサポートしています。これらは標準化一般マークアップ言語 (SGML) およびハイパーテキストマークアップ言語 (HTML)、そして可拡張性マークアップ言語 ... モデル API モジュールコンテンツ DOM 内のオブジェクト DOMImplementation オブジェクト Node オブジェクト NodeList オブジェクト DocumentType オブジェクト Document オブジェクト Element オブジェクト Attr オブジェクト NamedNodeMap Objects DocumentFragment オブジ ... 連ページ PHP xml_get_error_code() PHP xml_parser_get_option() PHP book.xml PHP class.xmlparser Django index PHP class.dom-xmldocument ...
https://man.mtool.work/python/3.14/library/markup.html
What's New In Python 3.3 8072
What's New In Python 3.3 この記事では 3.2 と比較した Python 3.3 の新機能を解説します。 Python 3.3 は2012年9月29日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 398 - Python 3.3 リリーススケジュール 概要 -- リリース ... ことが出来ます。 例えば、Python 3.2 向けに書かれた以下のコード: from errno import ENOENT , EACCES , EPERM try : with open ( "document.txt" ) as f : content = f . read () except IOError as err : if err . errno == ENOENT : print ( "document.txt file is missi ... ng" ) elif err . errno in ( EACCES , EPERM ): print ( "You are not allowed to read document.txt" ) else : raise は errno をインポートしたり手動で例外属性を調べたりせずに書くことが出来ます: try : with open ( "docume ... nt.txt" ) as f : content = f . read () except FileNotFoundError : print ( "document.txt file is missing" ) except PermissionError : print ( "You are not allowed to read document.txt" ) 参考 PEP 3151 - Rewor ...
https://man.mtool.work/python/3.14/whatsnew/3.3.html
PREV 1 2 NEXT