Validate XML with an embedded XSD.

Here is a quick and easy way to validate your XML using an embedded XSD schema file. This will work in .NET 2.0.
Private Function ValidateXML(ByVal sXML As String) As Boolean
Dim isValid As Boolean = False

‘Get the embeded XSD and put in a stream
Dim xsdStream As Stream =

‘Read in the XSD stream
Dim sr As StreamReader =