Click or drag to resize

XmlHelperEncodeContent Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-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: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static string EncodeContent(
	string value,
	bool preferBlockEscape
)

Parameters

value
Type: SystemString
The content value to encode.
preferBlockEscape
Type: SystemBoolean
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

Type: String
The attribute value in its encoded form (but not quoted).
See Also