HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/nokogiri-1.12.5-x86_64-linux/ri/Nokogiri/XML/Searchable/xpath-i.ri
U:RDoc::AnyMethod[iI"
xpath:ETI"$Nokogiri::XML::Searchable#xpath;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"KSearch this node for XPath +paths+. +paths+ must be one or more XPath ;TI"
queries.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"node.xpath('.//title')
;T:@format0o;
;	[I"?A hash of namespace bindings may be appended. For example:;T@o;;	[I"Anode.xpath('.//foo:name', {'foo' => 'http://example.org/'})
;TI"7node.xpath('.//xmlns:name', node.root.namespaces)
;T;
0o;
;	[I"]A hash of variable bindings may also be appended to the namespace bindings. For example:;T@o;;	[I"Hnode.xpath('.//address[@domestic=$value]', nil, {:value => 'Yes'})
;T;
0o;
;	[I"CCustom XPath functions may also be defined.  To define custom ;TI"Bfunctions create a class and implement the function you want ;TI">to define.  The first argument to the method will be the ;TI"Bcurrent matching NodeSet.  Any other arguments are ones that ;TI"Cyou pass in.  Note that this class may appear anywhere in the ;TI"!argument list.  For example:;T@o;;	[
I"9node.xpath('.//title[regex(., "\w+")]', Class.new {
;TI"!  def regex node_set, regex
;TI"K    node_set.find_all { |node| node['some_attribute'] =~ /#{regex}/ }
;TI"  end
;TI"}.new);T;
0:
@fileI"#lib/nokogiri/xml/searchable.rb;T:0@omit_headings_from_table_of_contents_below0I"Qxpath *paths, [namespace-bindings, variable-bindings, custom-handler-class]
;T0[I"(*args);T@/FI"Searchable;TcRDoc::NormalModule00