Class: Nokogiri::XML::SAX::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/nokogiri/xml/sax/document.rb

Direct Known Subclasses

BeforeHandler

Instance Method Summary collapse

Instance Method Details

#cdata_block(string) ⇒ Object

Called when cdata blocks are found string contains the cdata content



54
55
# File 'lib/nokogiri/xml/sax/document.rb', line 54

def cdata_block string
end

#characters(string) ⇒ Object

Characters read between a tag string contains the character data



30
31
# File 'lib/nokogiri/xml/sax/document.rb', line 30

def characters string
end

#comment(string) ⇒ Object

Called when comments are encountered string contains the comment data



36
37
# File 'lib/nokogiri/xml/sax/document.rb', line 36

def comment string
end

#end_documentObject

Called when document ends parsing



12
13
# File 'lib/nokogiri/xml/sax/document.rb', line 12

def end_document
end

#end_element(name) ⇒ Object

Called at the end of an element name is the tag name



24
25
# File 'lib/nokogiri/xml/sax/document.rb', line 24

def end_element name
end

#error(string) ⇒ Object

Called on document errors string contains the error



48
49
# File 'lib/nokogiri/xml/sax/document.rb', line 48

def error string
end

#start_documentObject

Called when document starts parsing



7
8
# File 'lib/nokogiri/xml/sax/document.rb', line 7

def start_document
end

#start_element(name, attrs = []) ⇒ Object

Called at the beginning of an element name is the name of the tag with attrs as attributes



18
19
# File 'lib/nokogiri/xml/sax/document.rb', line 18

def start_element name, attrs = []
end

#warning(string) ⇒ Object

Called on document warnings string contains the warning



42
43
# File 'lib/nokogiri/xml/sax/document.rb', line 42

def warning string
end