Class: Nokogiri::XML::SAX::Document
- Inherits:
-
Object
- Object
- Nokogiri::XML::SAX::Document
- Defined in:
- lib/nokogiri/xml/sax/document.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#cdata_block(string) ⇒ Object
Called when cdata blocks are found
string
contains the cdata content. -
#characters(string) ⇒ Object
Characters read between a tag
string
contains the character data. -
#comment(string) ⇒ Object
Called when comments are encountered
string
contains the comment data. -
#end_document ⇒ Object
Called when document ends parsing.
-
#end_element(name) ⇒ Object
Called at the end of an element
name
is the tag name. -
#error(string) ⇒ Object
Called on document errors
string
contains the error. -
#start_document ⇒ Object
Called when document starts parsing.
-
#start_element(name, attrs = []) ⇒ Object
Called at the beginning of an element
name
is the name of the tag withattrs
as attributes. -
#warning(string) ⇒ Object
Called on document warnings
string
contains the warning.
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_document ⇒ Object
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_document ⇒ Object
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 |