<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>waman</author_name>
  <author_url>https://blog.hatena.ne.jp/waman/</author_url>
  <blog_title>倭マン's BLOG</blog_title>
  <blog_url>https://waman.hatenablog.com/</blog_url>
  <categories>
    <anon>dom4j</anon>
    <anon>XPath</anon>
  </categories>
  <description>今回は XPath を用いて、ノードを取得したり（属性などの）値を取得したりする方法を見ていきます（一覧）。dom4j で XPath 機能を利用するためには、XPath エンジンである Jaxen の jar ファイルをクラスパス内に含める必要があります*1。Node#selectNodes(String) まず、XPath 式によってノードを取得する1番典型的なメソッド List Node#selectNodes(String) を見ていきましょう。 次節で紹介するその他の XPath を使うメソッドも、使い方は基本的に同じです。以下のようなサンプルの XML データがあるとします。 &lt;?…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaman.hatenablog.com%2Fentry%2F20070921%2F1190413562&quot; title=&quot;XPath を使う - 倭マン&amp;#39;s BLOG&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>2007-09-21 07:26:02</published>
  <title>XPath を使う</title>
  <type>rich</type>
  <url>https://waman.hatenablog.com/entry/20070921/1190413562</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
