Programming Reference Manual
 
Syntax
 
Validate[$](xmlData$ , xsdFile$)
 
Description
Return a result string after parsing a XML data string thru a  XML Schema Definition (XSD) file.
 
If successful, the result string is "OK". Is there is any error or if the parsing failes due to a mismatch with the schema definition, the result string contains detailed information about the error or mismatsh.
 
Parameter
Description
xmlData$ 
The string that containing the XML data to be parsed.
xsdFile$
The full path and file name referencing the xsd file..
See Also
Example
 
Sub Main
 
   Dim Result As String
 
   XML.Clear
   XML.NewChild "CustomerID", "Test"
 
   Result = ValidateXML(XML.GetXml, "o:\adminsql\EDI\Orders.xsd")
 
   If Result = "OK" Then
      Msgbox "The XML data is valid!", mbInformation
   Else
      Msgbox "The XML data is invalid:" & vbNewLine & Result, mbExclamation
   End If
 
End Sub