Hello Nick, The problem is really solved. :D Putting "\0" at the end of the data passed into callback, I can take out desired element_value. without using strstr. Forgetting to do that made me take a lot of time to parse a file. Thank you so much! cheers, yuki