ParserHelper::IsXml Method (String^, Boolean)

 

Checks if content is possibly an XML.

Namespace:   Microsoft.WindowsAzure.Common.Internals
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

public:
static bool IsXml(
	String^ content,
	bool validate = false
)

Parameters

content
Type: System::String^

String to check.

validate
Type: System::Boolean

If set to true will validate entire XML for validity otherwise will just check the first character.

Return Value

Type: System::Boolean

True is content is possibly an XML otherwise false.

Return to top
Show: