<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lingvisticae</author_name>
  <author_url>https://blog.hatena.ne.jp/lingvisticae/</author_url>
  <blog_title>惰力飛行</blog_title>
  <blog_url>https://livingdead0812.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>構造を変えずに属性やテキストに編集を加える場合 読み込んだファイルオブジェクト（Elementオブジェクト）を直接編集し，別名のオブジェクトを作って書き出す． from lxml import etree as ET tree = ET.parse(filename) root = tree.getroot() # 編集するテキストをXPathで取り出し，編集 for t in root.findall('./path/to/node'): t.text = t.text.replace('hoge', 'huga') # ElementTreeオブジェクトに変更を反映し，ファイルに書き出す …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flivingdead0812.hatenablog.com%2Fentry%2F2019%2F07%2F18%2F183322&quot; title=&quot;xmlを編集・生成する方法についての備忘 - 惰力飛行&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>2019-07-18 18:33:22</published>
  <title>xmlを編集・生成する方法についての備忘</title>
  <type>rich</type>
  <url>https://livingdead0812.hatenablog.com/entry/2019/07/18/183322</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
