CQG Algorithmic Orders
Validate Method
See Also  Send Feedback
CQGAlgorithmicOrderBuilder > CQGAlgorithmicOrderBuilder Namespace > modAlgorithmicOrderHelper Class : Validate Method



xmlStrm
Stream object from which XML string is read
xsdSchm
XSD schema object
errorMsg
Error message in case validation does not passed

Glossary Item Box

Validates XML string according to XSD schema.

Syntax

Visual Basic (Declaration) 
Public Shared Function Validate( _
   ByVal xmlStrm As Stream, _
   ByVal xsdSchm As XmlSchema, _
   ByRef errorMsg As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim xmlStrm As Stream
Dim xsdSchm As XmlSchema
Dim errorMsg As String
Dim value As Boolean
 
value = modAlgorithmicOrderHelper.Validate(xmlStrm, xsdSchm, errorMsg)
C# 
public static bool Validate( 
   Stream xmlStrm,
   XmlSchema xsdSchm,
   ref string errorMsg
)
C++/CLI 
public:
static bool Validate( 
   Stream^ xmlStrm,
   XmlSchema^ xsdSchm,
   String^% errorMsg
) 

Parameters

xmlStrm
Stream object from which XML string is read
xsdSchm
XSD schema object
errorMsg
Error message in case validation does not passed

Return Value

True if XML string is valid, False - otherwise

See Also

Reference

modAlgorithmicOrderHelper Class
modAlgorithmicOrderHelper Members

Copyright © 2012 CQG Inc. All Rights Reserved.