26 using namespace zypp::xml;
63 bool consumeNode(
Reader & reader_r );
77 PatchesFileReader::Impl::Impl(
const Pathname & patches_file,
79 : _tag(
tag_NONE), _callback(callback)
81 Reader reader( patches_file );
82 MIL <<
"Reading " << patches_file << endl;
91 std::string data_type;
92 if ( reader_r->
nodeType() == XML_READER_TYPE_ELEMENT )
94 if ( reader_r->
name() ==
"patches" )
99 if ( reader_r->
name() ==
"patch" )
105 if ( reader_r->
name() ==
"location" )
111 if ( reader_r->
name() ==
"checksum" )
116 _location.setChecksum(
CheckSum( checksum_type, checksum_vaue ) );
119 if ( reader_r->
name() ==
"timestamp" )
125 else if ( reader_r->
nodeType() == XML_READER_TYPE_END_ELEMENT )
128 if ( reader_r->
name() ==
"patch" )
129 _callback( _location, _id );