Class | Nokogiri::XML::Reader |
In: |
lib/nokogiri/xml/reader.rb
ext/nokogiri/html_document.c |
Parent: | Object |
The Reader parser allows you to effectively pull parse an XML document. Once instantiated, call Nokogiri::XML::Reader#each to iterate over each node. Note that you may only iterate over the document once!
empty_element? | -> | self_closing? |
encoding | [R] | The encoding for the document |
errors | [RW] | A list of errors encountered while parsing |
source | [R] | The XML source |
Read the contents of the current node, including child nodes and markup. Returns a utf-8 encoded string.