Use XmlBeans to generate METS code