Dela via


Utility.isXml Method (String)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Checks if the string is XML based or not.

Namespace:   Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly:  Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Syntax

public static bool isXml(
    string xmlString
)
Public Shared Function isXml (
    xmlString As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if it appears to be XML, false otherwise

Remarks

This can have false positives but is a fast way to do an initial check. Parsing the XML is the only way to determine if the result is truely XML.

See Also

Utility Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace

Return to top

Unified Service Desk 2.0

© 2016 Microsoft. All rights reserved. Copyright