XmlToBean mapping tools for xml to bean in java sample InputDataSource source = new InputXMLDataSource(xml);// build xml to a inputDataSource TargetBean output = engine.process(source, TargetBean.class);