Xml ValidatorIs Xml String Valid Method
Validates the XML string against a schema.
Definition
Namespace: ASAP.NRP.Core.Tools
Assembly: NRP (in NRP.dll) Version: 3.49.0+964b2dfb493dfda37da83e5373992cb1cc934e98
True if the XML is valid, false otherwise.
Assembly: NRP (in NRP.dll) Version: 3.49.0+964b2dfb493dfda37da83e5373992cb1cc934e98
C#
public static bool IsXmlStringValid(
string xmlString,
string schemaFileName
)VB
Public Shared Function IsXmlStringValid (
xmlString As String,
schemaFileName As String
) As BooleanC++
public:
static bool IsXmlStringValid(
String^ xmlString,
String^ schemaFileName
)F#
static member IsXmlStringValid :
xmlString : string *
schemaFileName : string -> bool Parameters
- xmlString String
- The XML string 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.