Share via


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)

Syntax

public static bool IsXml(
    string content,
    bool validate = false
)
public:
static bool IsXml(
    String^ content,
    bool validate = false
)
static member IsXml : 
        content:string *
        validate:bool = false -> bool
Public Shared Function IsXml (
    content As String,
    validate As Boolean
) As Boolean

Parameters

  • 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.

See Also

ParserHelper Class
Microsoft.WindowsAzure.Common.Internals Namespace

Return to top