xmlTextReader based interface to iterate xml streams.
*
* bool consumeNode( XML::Reader & reader_r )
* {
*
DBG << *reader_r << endl;
* return true;
* }
*
*
* void example()
* {
* try
* {
* XML::Reader reader( "/Local/repodata/repomd.xml" );
* reader.foreachNode( consumeNode );
* }
* catch ( const Exception & )
* { ; }
* }
*
*
* bool consumeNodeAndAttribute( XML::Reader & reader_r )
* {
* consumeNode( reader_r );
* return reader_r.foreachNodeAttribute( consumeNode );
* }
*
*
* void example()
* {
* Pathname repodata( "/Local/repodata/repomd.xml" );
* try
* {
* XML::Reader reader( "/Local/repodata/repomd.xml" );
* reader.foreachNode( consumeNodeAndAttribute );
*
*
* }
* catch ( const Exception & )
* { ; }
* }
*
Definition at line 95 of file Reader.h.