I see, if you're trying to go that way (extract the embedded response into a separate event), that's a different story.
You could try something like this:bxh_event2table --query='type="i"' eventfile.xml
where you would replace the query 'type="i"' with whatever you are using to match your stimuli, and then this creates a tab-separated file that has all the values for each event as columns; once you've found out which columns have the onset and response time, you can pipe it to awk:bxh_event2table --query='type="i"' eventfile.xml | awk '{print $1 + $8, 0, 1}'where $1 and $8 specify the first and eighth columns (you will need to change this depending on your particular data). The 0 and 1 afterwards are the duration and weight you want to put in the second and third columns of the timing file. Let me know if that won't work for you.