Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / EscapeXmlChars Method
String that could contain < > and & characters.
In This Topic
    EscapeXmlChars Method
    In This Topic
    Escapes XML characters < > and &.
    Syntax
    public static string EscapeXmlChars( 
       string value
    )

    Parameters

    value
    String that could contain < > and & characters.

    Return Value

    A new string where & has been replaced by &#x26;, < has been replaced by &#x3c; and > has been replaced by &#x3e;.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also