Thanks for quick answer.
> Nokogiri expands the node for you automatically, so you should be able to
> change your code to do this:
>
> reader.each do |node|
> import_data_to_db node
> end
But in the docs it's written that node in the code above is an
instance of Nokogiri::XML::Reader, not Nokogiri::XML::Node, so I can't
really call node.children or node.xpath on this object, right? Besides
nokogiri's Reader#each uses Reader#read, which reads *every* node in
the XML file, while Reader#next (used in my example) goes to the next
node on the same level, so I can iterate only over list elements,
skipping all nodes inside them.