= Nokogiri::XML::SAX::Document < Object (from /home/chedong/.local/share/rdoc) ------------------------------------------------------------------------ This class is used for registering types of events you are interested in handling. All of the methods on this class are available as possible events while parsing an XML document. To register for any particular event, just subclass this class and implement the methods you are interested in knowing about. To only be notified about start and end element events, write a class like this: class MyDocument < Nokogiri::XML::SAX::Document def start_element name, attrs = [] puts "#{name} started!" end def end_element name puts "#{name} ended" end end You can use this event handler for any SAX style parser included with Nokogiri. See Nokogiri::XML::SAX, and Nokogiri::HTML4::SAX. ------------------------------------------------------------------------ = Instance methods: cdata_block characters comment end_document end_element end_element_namespace error processing_instruction start_document start_element start_element_namespace warning xmldecl
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)