0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自分用XPathチートシート

Posted at

XMLサンプル

<?xml version="1.0" encoding="UTF-8"?>
<library>
    <book id="b1">
        <title>吾輩は猫である</title>
        <author>夏目漱石</author>
        <published>1905</published>
        <genre>小説</genre>
    </book>
    <book id="b2">
        <title>走れメロス</title>
        <author>太宰治</author>
        <published>1940</published>
        <genre>小説</genre>
    </book>
    <book id="b3">
        <title>情報科学入門</title>
        <author>田中 一郎</author>
        <published>2020</published>
        <genre>学術書</genre>
    </book>
</library>

①〇〇という文字列を内部テキストに含む特定のタグを全て抽出する(特定のタグを仮に<c>とする)

//c[contains(.,'〇〇')]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?