<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karasuyamatengu</author_name>
  <author_url>https://blog.hatena.ne.jp/karasuyamatengu/</author_url>
  <blog_title>karasuyamatenguの日記</blog_title>
  <blog_url>https://karasuyamatengu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>読み込んだXMLと同等のものを出力するフィルター。SAXなんで巨大なXMLファイルでも処理できる。 import sys import xml.sax.handler from elementtree.SimpleXMLWriter import XMLWriter import codecsclass Parser(xml.sax.handler.ContentHandler): &quot;&quot;&quot; 読み込んだXMLと同等のもを掃き出す何もしないフィルター &quot;&quot;&quot; def __init__(self, outfh=sys.stdout): self.w=XMLWriter(outfh, encoding…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarasuyamatengu.hatenadiary.org%2Fentry%2F20111216%2F1324000215&quot; title=&quot;覚書： xml.saxとelementtree.SimpleXMLWriterを使ったXMLフィルター - karasuyamatenguの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-16 10:50:15</published>
  <title>覚書： xml.saxとelementtree.SimpleXMLWriterを使ったXMLフィルター</title>
  <type>rich</type>
  <url>https://karasuyamatengu.hatenadiary.org/entry/20111216/1324000215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
