The D-Haven project released a new product called Binary XML. It will allow you to compile your XML files into Java classes. In the future, it will allow you to provide callback functionality to provide dynamic elements to the XML files.
Currently, only XML compilation is supported.