Cvc-complex-type.3.2.2: Attribute 'jaxb: extensionBindingPrefixes' cannot appear on element 'jaxb: bindings'

I checked out one project ... and will try to solve some problems in Eclipse Luna 4.4.0. In one of my maven projects I have the following xjb file:

<?xml version="1.0" encoding="UTF-8"?>
    <jaxb:bindings
    version="2.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    jaxb:extensionBindingPrefixes="xjc"
    xmlns:xjc= "http://java.sun.com/xml/ns/jaxb/xjc"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    xsi:schemaLocation="
    http://java.sun.com/xml/ns/jaxb
    http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
">
...
...

      

but Eclipse will tell me the problem>
  cvc-complex-type.3.2.2: Attribute "jaxb: extensionBindingPrefixes" cannot appear on element "jaxb: bindings"

does anyone know why?

+3


source to share


1 answer


bindingschema_2_0.xsd seems to be inadequate. It declares an attribute extensionBindingPrefixes

but does not use it on the global element bindings

.

Using the attribute jaxb:extensionBindingPrefixes

in the code you posted looks correct to me.



To me personally, I've never used xsi:location

file binding. You can safely remove it.

+2


source







All Articles