Share via


Utility.isXml(String) Method

Definition

Checks if the string is XML based or not.

public:
 static bool isXml(System::String ^ xmlString);
public static bool isXml (string xmlString);
static member isXml : string -> bool
Public Shared Function isXml (xmlString As String) As Boolean

Parameters

xmlString
String

The text to see if it is XML

Returns

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.

Applies to