sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Created] (SIS-126) Replace the NamespacePrefixMapper hack by NamespaceContext
Date Wed, 21 Aug 2013 12:49:55 GMT
Martin Desruisseaux created SIS-126:

             Summary: Replace the NamespacePrefixMapper hack by NamespaceContext
                 Key: SIS-126
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Metadata
    Affects Versions: 0.3
            Reporter: Martin Desruisseaux
            Priority: Minor

In order to customize the mapping of XML prefix to URI, we currently override the following

* {{com.sun.xml.bind.marshaller.NamespacePrefixMapper}}
* {{com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper}}

Which class is used depends on the environment (standard JDK or Glassfish). However those
classes are not public API; they may not be present in other implementations, and their API
sometime change.

It seems that {{javax.xml.namespace.NamespaceContext}} in public API can do the job. We need
to specify an instance to {{}} using the {{setNamespaceContext}}
method, then to use the {{javax.xml.bind.Marshaller}} method that expect a {{XMLStreamWriter}}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message