I am trying to create JAXB binding for xccdf-1.1.4.xsd which is a standard schema that can be obtain from XCCDF Schema Location
I am currently using EclipseLink MOXy
You can use an external bindings file to rename one of the any properties.
binding.xml
XML Schema (schema.xsd)
Below is a simplified version of your XML schema:
XJC Call
Below is how you make an XJC call that leverages an external binding file.
xjc -b binding.xml schema.xsd
Generated Class (Foo)
package org.example.schema;
import java.util.*;
import javax.xml.bind.annotation.*;
import org.w3c.dom.Element;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "foo", propOrder = {
"any",
"any2"
})
public class Foo {
@XmlAnyElement(lax = true)
protected List