Bonjour,
J'ai créer un schéma xsd et j'utilise JAXB pour générer mes classes. J'utilise également un fichier de bindings et sa me provoque l'erreur suivante:
[ERROR] La personnalisation "ns:annotation" n'est associée à aucun élément de schéma.
Dans ce fichier, j'indique que les classes générées doivent hériter d'une classé existante
Merci de votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <?xml version="1.0" encoding="UTF-8"?> <jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc" xmlns:ns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb"> <ns:annotation> <ns:appinfo> <jaxb:globalBindings> <xjc:superInterface name="monPackage.MaClasseExistante"/> </jaxb:globalBindings> </ns:appinfo> </ns:annotation> </jaxb:bindings>
Partager