public void writeSchema(Element schemaRoot) { // override this to write out your schema // if you have it in DOM form you can convert it to YOM via DOMConverter } }2、Jibx绑定 这种类型的绑定相对来说不需要自己写额外的代码，代是需要自己在开发之前进行Jibx的预编译，他会为我们生成相应的辅助类。但是这些东需要额外的配置，所以在开发过程中也不是很方便。3、XMLBeans绑定 这种绑定支持任意复杂的schema，可以自动生成javabean代码。

<web-app> <display-name>Spring Image Database</display-name> <description>Spring Image Database sample application</description> <!-- These values are used by ContextLoaderListener, defined immediately below. The files listed below are used to initialize the business logic portion of the application. Each dispatcher servlet (defined further down) has their own configuration file, which may or may not depend on items in these files. --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:applicationContext-webservice.xml </param-value> </context-param> <!-- Log4j configuration listener--> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> <!-- Spring framework --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>