if it is java I'd personally go for using JAXB View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209733#4209733 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209733