---
# System prepended metadata

title: XmlViewResolver Notes

---

# XmlViewResolver Notes
### Dependencies
![img](https://i.imgur.com/b0EUuFY.png)
### Knowledge
* A ViewResolver implementation that uses XML file for view definitions, default in ``/WEB-INF/views.xml``
* Does not support internationalization.
* `Order` interface allows for ViewResolver chaining. 
* `setLocation(Resource location)` specifies the location of the XML file.
* `setOrder(int order)` specifies the order in the Resolver chaining.
* If the ViewResolver's `loadView()` returns `null`, next ViewResolver will resolves.
* `initFactory()` uses the factory method design pattern and returns a BeanFactory. It reads the Xml file and load the bean definitions.
* `destroy()` will close the view bean when context shutdown.