Class Nokogiri::XML::Reader
In: lib/nokogiri/xml/reader.rb
ext/nokogiri/xml_document_fragment.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!

Methods

Included Modules

Enumerable

Attributes

encoding  [R] 
errors  [RW] 

Public Class methods

Public Instance methods

Get the number of attributes for the current node

Get a list of attributes for this Node

Does this node have attributes?

Was an attribute generated from the default value in the DTD or schema?

Get the depth of the node

Get the xml:lang scope within which the node resides.

Get the local name of the node

Get the name of the node

Get the URI defining the namespace associated with the node

Get a hash of namespaces for this Node

Get the shorthand reference to the namespace associated with the node.

Move the Reader forward through the XML document.

Get the state of the reader

Get the text value of the node if present

Does this node have a text value?

Get the XML version of the document being read

[Validate]