ri > Mechanize::XmlFile

= Mechanize::XmlFile < Mechanize::File

------------------------------------------------------------------------
= Extended by:
Forwardable (from /home/chedong/.local/share/rdoc)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
This class encapsulates an XML file. If Mechanize finds a content-type
of 'text/xml' or 'application/xml' this class will be instantiated and
returned. This class also opens up the search and at methods available
on the underlying Nokogiri::XML::Document object.

Example:

  require 'mechanize'

  agent = Mechanize.new
  xml = agent.get('http://example.org/some-xml-file.xml')
  xml.class #=> Mechanize::XmlFile
  xml.search('//foo[@attr="bar"]/etc')
------------------------------------------------------------------------
= Class methods:

  new

= Instance methods:

  at
  search
  xml

= Attributes:

  attr_reader xml

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-30 08:52 @216.73.217.106
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!