Build Component UtilitiesIs Legal Xml Text Method
This is used to confirm that the specified text only contains legal XML characters
Definition
Namespace: Sandcastle.Core.BuildAssembler
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
True if all characters are legal XML characters, false if not
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static bool IsLegalXmlText(
this string text
)VB
<ExtensionAttribute>
Public Shared Function IsLegalXmlText (
text As String
) As BooleanC++
public:
[ExtensionAttribute]
static bool IsLegalXmlText(
String^ text
)F#
[<ExtensionAttribute>]
static member IsLegalXmlText :
text : string -> bool Parameters
- text String
- The text to check
Return Value
BooleanTrue if all characters are legal XML characters, false if not