3 Replies Latest reply on Jan 27, 2010 11:57 AM by aloubyansky

    Binding to multiple namespaces?

    dmlloyd

      My XML schema is designed to be forwards-compatible with future versions, each of which will have a distinct namespace.  Therefore I need a way to register my metadata class under more than one namespace.  Right now I have:

       

      @XmlType(name = "xnioType", propOrder = {})
      @XmlRootElement(name = "xnio")
      @JBossXmlSchema(namespace = "urn:jboss:xnio:2.0", elementFormDefault = XmlNsForm.QUALIFIED)
      public final class XnioMetaData implements BeanMetaDataFactory, Serializable {
          ...
      }
      

       

      There's no apparent way to list multiple namespaces, and I don't want to have to do the whole subclass thing just for the sake of supporting this.  Am I missing something?