Interface XmlNameProcessor

    • Method Detail

      • encodeName

        void encodeName​(XmlNameProcessor.XmlName name)
        Used during XML serialization.

        This method should process the provided XmlNameProcessor.XmlName and escape / encode invalid XML characters.

        Parameters:
        name - The name to encode
      • decodeName

        void decodeName​(XmlNameProcessor.XmlName name)
        Used during XML deserialization.

        This method should process the provided XmlNameProcessor.XmlName and revert the encoding done in the encodeName(XmlName) method.

        Note: Depending on the use case, it is not always required (or even possible) to reverse an encoding with 100% accuracy.

        Parameters:
        name - The name to encode