xmlTextReader based interface to iterate xml streams.  
 More...
#include <zypp/parser/xml/Reader.h>
xmlTextReader based interface to iterate xml streams. 
{
  DBG << *reader_r << endl;
 
  return true;
}
 
void example()
{
  try
    {
      reader.foreachNode( consumeNode );
    }
    { ; } 
}
Base class for Exception.
xmlTextReader based interface to iterate xml streams.
 
{
  consumeNode( reader_r );
}
 
void example()
{
  Pathname repodata( 
"/Local/repodata/repomd.xml" );
 
  try
    {
      reader.foreachNode( consumeNodeAndAttribute );
      
      
    }
    { ; } 
}
bool foreachNodeAttribute(const ProcessNode &fnc_r)
  
Definition at line 95 of file Reader.h.
◆ ProcessNode
◆ Reader()
Ctor. 
Setup xmlTextReader and advance to the 1st Node. 
Definition at line 88 of file Reader.cc.
 
 
◆ ~Reader()
      
        
          | zypp::xml::Reader::~Reader | ( |  | ) |  | 
      
 
 
◆ nodeText()
If the current node is not empty, advances the reader to the next node, and returns the value. 
- Note
- if the node has a xml subtree you will probably jump to that node and get a empty text value back. Use it only if you are sure the node has no XML subtree. 
Definition at line 122 of file Reader.cc.
 
 
◆ nextNode()
      
        
          | bool zypp::xml::Reader::nextNode | ( |  | ) |  | 
      
 
 
◆ nextNodeAttribute()
      
        
          | bool zypp::xml::Reader::nextNodeAttribute | ( |  | ) |  | 
      
 
 
◆ nextNodeOrAttribute()
  
  | 
        
          | bool zypp::xml::Reader::nextNodeOrAttribute | ( |  | ) |  |  | inline | 
 
 
◆ atEnd()
  
  | 
        
          | bool zypp::xml::Reader::atEnd | ( |  | ) | const |  | inline | 
 
 
◆ operator*()
  
  | 
        
          | const Node & zypp::xml::Reader::operator* | ( |  | ) | const |  | inline | 
 
 
◆ operator->()
  
  | 
        
          | const Node * zypp::xml::Reader::operator-> | ( |  | ) | const |  | inline | 
 
 
◆ foreachNode()
◆ foreachNodeAttribute()
◆ foreachNodeOrAttribute()
  
  | 
        
          | bool zypp::xml::Reader::foreachNodeOrAttribute | ( | const ProcessNode & | fnc_r | ) |  |  | inline | 
 
 
◆ seekToNode()
      
        
          | bool zypp::xml::Reader::seekToNode | ( | int | depth_r, | 
        
          |  |  | const std::string & | name_r ) | 
      
 
 
◆ seekToEndNode()
      
        
          | bool zypp::xml::Reader::seekToEndNode | ( | int | depth_r, | 
        
          |  |  | const std::string & | name_r ) | 
      
 
 
◆ close()
  
  | 
        
          | void zypp::xml::Reader::close | ( |  | ) |  |  | private | 
 
 
◆ _stream
◆ _reader
  
  | 
        
          | xmlTextReaderPtr zypp::xml::Reader::_reader |  | private | 
 
 
◆ _node
  
  | 
        
          | Node zypp::xml::Reader::_node |  | private | 
 
 
The documentation for this class was generated from the following files: