Xml ValidatorIs Xml Valid Method
Validates the XML file against a schema.
Definition
Namespace: SRS.ShiftSolver.Tools
Assembly: ShiftSolver (in ShiftSolver.dll) Version: 2.3.0+2c0a765360648175f37b32b9a08ecd256c911c4c
True if the XML is valid, false otherwise.
Assembly: ShiftSolver (in ShiftSolver.dll) Version: 2.3.0+2c0a765360648175f37b32b9a08ecd256c911c4c
C#
public static bool IsXmlValid(
string xmlFileName,
string schemaFileName
)VB
Public Shared Function IsXmlValid (
xmlFileName As String,
schemaFileName As String
) As BooleanC++
public:
static bool IsXmlValid(
String^ xmlFileName,
String^ schemaFileName
)F#
static member IsXmlValid :
xmlFileName : string *
schemaFileName : string -> bool Parameters
- xmlFileName String
- The XML file to validate.
- schemaFileName String
- The schema file to validate the XML against.
Return Value
BooleanTrue if the XML is valid, false otherwise.
Remarks
All error messages are sent to the ErrorLogger.Log() method.