Details

  • Type: Task Task
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 3.00, 3.01, 3.02, 3.03, 3.04, 3.05, 3.06, 3.07, 3.08, 3.09, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15, 3.16, 3.17, 3.18, 3.19, 3.20
  • Fix Version/s: None
  • Component/s: Utilities
  • Labels:

Description

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

  • 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 javax.xml.stream.XMLStreamWriter using the setNamespaceContext method, then to use the javax.xml.bind.Marshaller method that expect a XMLStreamWriter argument.

Activity

There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Martin Desruisseaux
Vote (0)
Watch (0)

Dates

  • Created:
    Updated: