<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snaka72</author_name>
  <author_url>https://blog.hatena.ne.jp/snaka72/</author_url>
  <blog_title>今日もスミマセン。</blog_title>
  <blog_url>https://snaka72.hatenadiary.org/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>XPath</anon>
    <anon>自分用</anon>
  </categories>
  <description>たぶん、既にだれかが作っていそうだけど... XPathを使ってサクッと自分用のツールを作るために関数作ってみた。こんな感じで使える。 $x('//div').each(function(ele) { //要素ele に対する処理 }); また、返ってくる値はArrayの拡張なので、普通の配列としても扱える。 var result = $('//div'); alert(result.length); alert(result[0]); alert(result[1]); Arrayを直接触っているのがいけていない感じだけど、他に良いやりかたが思いつかなかったのでとりあえずさらしておく。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnaka72.hatenadiary.org%2Fentry%2F20081024%2F1224856025&quot; title=&quot;XPathのevaluate結果に対する処理をスマートに書くための便利関数 - 今日もスミマセン。&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>2008-10-24 22:47:05</published>
  <title>XPathのevaluate結果に対する処理をスマートに書くための便利関数</title>
  <type>rich</type>
  <url>https://snaka72.hatenadiary.org/entry/20081024/1224856025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
