Class NamespaceContextMap

    • Constructor Detail

      • NamespaceContextMap

        public NamespaceContextMap​(Map<String,​String> prefixMappings)
        Constructor that takes a map of XML prefix-namespaceURI values. A defensive copy is made of the map. An IllegalArgumentException will be thrown if the map attempts to remap the standard prefixes defined in the NamespaceContext contract.
        Parameters:
        prefixMappings - a map of prefix:namespaceURI values
      • NamespaceContextMap

        public NamespaceContextMap​(String... mappingPairs)
        Convenience constructor.
        Parameters:
        mappingPairs - pairs of prefix-namespaceURI values