NamespacePrefixMappings, required for JAXB, and XPath. The intent is to define the namespace prefix mappings in a single place. This class implements NamespaceContext, so it can be used as follows: XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); xPath.setNamespaceContext(new NamespacePrefixMappings()); For JAXB, NamespacePrefixMapper (for RI) and NamespacePrefixMapperSunInternal (for Java 6) both refer to this class.
@author jharrop
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.