Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Encode an element's content value so that it can be made part of a valid and well formed XML document.

Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public static string EncodeContent(
	string value,
	bool preferBlockEscape
)

Parameters

value
Type: System..::..String
The content value to encode.
preferBlockEscape
Type: System..::..Boolean
Pass true to use the CDATA escape if two conditions are met: that escaping is required, and that the value does not contain the string "]]>".

Return Value

The attribute value in its encoded form (but not quoted).

See Also