Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Validate() [2/2]

void System.Xml.XmlDocument.Validate ( ValidationEventHandler? validationEventHandler,
XmlNode nodeToValidate )
inline

Definition at line 1443 of file XmlDocument.cs.

1444 {
1445 if (_schemas == null || _schemas.Count == 0)
1446 {
1448 }
1450 if (document != this)
1451 {
1453 }
1454 if (nodeToValidate == this)
1455 {
1456 _reportValidity = false;
1457 }
1458 DocumentSchemaValidator documentSchemaValidator = new DocumentSchemaValidator(this, _schemas, validationEventHandler);
1460 if (nodeToValidate == this)
1461 {
1462 _reportValidity = true;
1463 }
1464 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlDocument_NodeNotFromDocument
Definition SR.cs:1174
static string XmlDocument_NoSchemaInfo
Definition SR.cs:1178
Definition SR.cs:7
XmlSchemaSet _schemas

References System.Xml.XmlDocument._reportValidity, System.Xml.XmlDocument._schemas, System.Xml.ArgumentException, System.Xml.Schema.XmlSchemaSet.Count, System.SR.Format(), System.SR.XmlDocument_NodeNotFromDocument, and System.SR.XmlDocument_NoSchemaInfo.