- input.set_shared_input(data, strlen(data));
- int result = 0;
- char *this_text = 0;
- char *this_extra = 0;
- while(!result)
- {
- result = input.read_tag();
- if(!result)
- {
- for(int i = 0; i < input.tag.properties.size(); i++)
- {
- const char *key = input.tag.get_property_text(i);
- const char *value = input.tag.get_property(key);
- ptr->update(key, value);
- }
+ input.set_shared_input(xbuf);
+ char *this_text = 0, *this_extra = 0;
+ if( !input.read_tag() ) {
+ for( int i=0; i<input.tag.properties.size(); ++i ) {
+ const char *key = input.tag.get_property_text(i);
+ const char *value = input.tag.get_property(key);
+ ptr->update(key, value);
+ }