Utility.isXml(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.