Utility.isXml Method
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)
Usage
'Usage
Dim xmlString As String
Dim returnValue As Boolean
returnValue = Utility.isXml(xmlString)
Syntax
'Declaration
Public Shared Function isXml ( _
xmlString As String _
) As Boolean
public static bool isXml (
string xmlString
)
public:
static bool isXml (
String^ xmlString
)
public static boolean isXml (
String xmlString
)
public static function isXml (
xmlString : String
) : boolean
Parameters
- xmlString
The text to see if it is XML
Return Value
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.