XmlValidatorIsXmlValid Method |
Validates the XML file against a schema.
Namespace:
ASAP.NRP.Core.Tools
Assembly:
NRP (in NRP.dll) Version: 3.49.0+539d3dcf73518163e952c8abb92256bf56ba5029
Syntaxpublic static bool IsXmlValid(
string xmlFileName,
string schemaFileName
)
Public Shared Function IsXmlValid (
xmlFileName As String,
schemaFileName As String
) As Boolean
public:
static bool IsXmlValid(
String^ xmlFileName,
String^ schemaFileName
)
static member IsXmlValid :
xmlFileName : string *
schemaFileName : string -> bool
Parameters
- xmlFileName
- Type: SystemString
The XML file to validate. - schemaFileName
- Type: SystemString
The schema file to validate the XML against.
Return Value
Type:
BooleanTrue if the XML is valid, false otherwise.
RemarksAll error messages are sent to the ErrorLogger.Log() method.
See Also