TSVGDocument.IsValidSVG(TStream,Boolean) Method

The StrictVerification parameter controls how the stream is validated. If false (the default), the function quickly checks if the stream contains well-formed XML and has a < svg> node. If true, the function parses the stream entirely and sees if there are any errors (much slower but more thorough)