Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
XmlHelper..::.EncodeContent Method
XmlHelper Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
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: 3.6.1.0 (3.6.1.0)

# 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

XmlHelper Class
Tangosol.Run.Xml Namespace