XmlValidatorIsXmlStringValid Method |
Validates the XML string against a schema.
Namespace:
SRS.ShiftSolver.Tools
Assembly:
ShiftSolver (in ShiftSolver.dll) Version: 2.2.0.0
Syntax public static bool IsXmlStringValid(
string xmlString,
string schemaFileName
)
Public Shared Function IsXmlStringValid (
xmlString As String,
schemaFileName As String
) As Boolean
public:
static bool IsXmlStringValid(
String^ xmlString,
String^ schemaFileName
)
static member IsXmlStringValid :
xmlString : string *
schemaFileName : string -> bool
Parameters
- xmlString
- Type: SystemString
The XML string to validate. - schemaFileName
- Type: SystemString
The schema file to validate the XML against.
Return Value
Type:
BooleanTrue if the XML is valid, false otherwise.
Remarks All error messages are sent to the ErrorLogger.Log() method.
See Also