I am trying to create multiple beans from multiple xsd. Unfortunately, they all have the same root element. I have successfully created an xjc binding file to rename subelements, but cannot find a way to select the root node to change this.
I tried the following, but getting an error: [ERROR]. An XPath evaluation of "/" should result in an element.
<jxb:bindings version="1.0" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:com.fnf="http://www.fnf.com/xes">
<jxb:bindings schemaLocation="transcode-submit.xsd" node="/xs:schema">
<jxb:bindings node="/">
<jxb:property name="Newname"/>
</jxb:bindings>
</jxb:bindings>
source
share