We explain how annotations work and give an examples of using them. With that said, we probably focus more on XML, but that shouldn't matter. Annotations and XML are really two interfaces to the same Struts 2 declarative architecture. We focus on making sure that you understand that architecture. We actually use XML heavily in the book because it makes a better single file blueprint of the application, which really helps when you are trying to explain things to a reader.