Results of 1 - 1 of about 1 for slideshow (0.001 sec.)
- xml.dom.minidom --- 最小限の DOM の実装 9414
- xml.dom.minidom --- 最小限の DOM の実装 ソースコード: Lib/xml/dom/minidom.py xml.dom.minidom は Document Object Model インターフェースの最小限の実装で、他の言語の実装と同様の API を備えています。 完全な DOM より単純で、大幅に小さい実装を目指
...なり現実的な例です。特にこの例に関しては、DOM の柔軟性をあまり活用してはいません。 import xml.dom.minidom document = """ \ <slideshow> <title>Demo slideshow</title> <slide><title>Slide title</title> <point>This is a demo</point> <point>Of a program for pro...her demo slide</title> <point>It is important</point> <point>To have more than</point> <point>one slide</point> </slide> </slideshow> """ dom = xml . dom . minidom . parseString ( document ) def getText ( nodelist ): rc = [] for node in nodelist : if node.... nodeType == node . TEXT_NODE : rc . append ( node . data ) return '' . join ( rc ) def handleSlideshow ( slideshow ): print ( "<html>" ) handleSlideshowTitle ( slideshow . getElementsByTagName ( "title" )[ 0 ]) slides = slide... - https://man.mtool.work/python/3.14/library/xml.dom.minidom.html
PREV
1
NEXT