<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doloopwhile</author_name>
  <author_url>https://blog.hatena.ne.jp/doloopwhile/</author_url>
  <blog_title>None is None is None</blog_title>
  <blog_url>https://doloopwhile.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>XHTMLを整形するツールを探してみた。 こんなの http://d.hatena.ne.jp/atsam/20090118/1232273065があったので Pythonでもxml.etree.ElementTree.fromstringで整形したいXHTMLを読み込んで、xml.etree.ElementTree.tostringで吐き出せば、きっと綺麗なコードが得られるだろう、考えた。 早速やってみて気づいたこと。 xml.etree.ElementTree.fromstringにはunicodeは渡せないようだ。 xmlはわざわざ頭にエンコーディングを書くのだ。 fromstringは…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoloopwhile.hatenablog.com%2Fentry%2F20090627%2F1275176047&quot; title=&quot;xhtmlの整形 - None is None is None&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>2009-06-27 08:34:07</published>
  <title>xhtmlの整形</title>
  <type>rich</type>
  <url>https://doloopwhile.hatenablog.com/entry/20090627/1275176047</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
