IsValid

SvgImage.IsValid method

Performs a surface check whether specified textual XML-compliant content represents a SVG image

public static bool IsValid(string content)
Parameter Type Description
content String XML content of an SVG image as simple text, not a base64-encoded content

Return Value

True if specified string can be treated as valid SVG at first look, false if it is not SVG for sure

See Also