How to write dynamic receiver intent-filter in XML?

In the bottom of text book page 568 it says I can write receiver intent-filter in XML style but where should I put it and how should name the reciever under anroid:name?