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

◆ CheckValidity()

override bool System.Xml.DocumentXPathNavigator.CheckValidity ( XmlSchemaSet schemas,
ValidationEventHandler validationEventHandler )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1121 of file DocumentXPathNavigator.cs.

1122 {
1123 XmlDocument xmlDocument;
1124 if (_source.NodeType == XmlNodeType.Document)
1125 {
1126 xmlDocument = (XmlDocument)_source;
1127 }
1128 else
1129 {
1131 if (schemas != null)
1132 {
1134 }
1135 }
1136 if (schemas == null && xmlDocument != null)
1137 {
1138 schemas = xmlDocument.Schemas;
1139 }
1140 if (schemas == null || schemas.Count == 0)
1141 {
1143 }
1144 DocumentSchemaValidator documentSchemaValidator = new DocumentSchemaValidator(xmlDocument, schemas, validationEventHandler);
1146 return documentSchemaValidator.Validate(_source);
1147 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlDocument_NoSchemaInfo
Definition SR.cs:1178
static string XPathDocument_SchemaSetNotAllowed
Definition SR.cs:1360
Definition SR.cs:7
virtual ? XmlDocument OwnerDocument
Definition XmlNode.cs:109
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentXPathNavigator._source, System.Xml.ArgumentException, System.Xml.Schema.XmlSchemaSet.Count, System.Xml.Dictionary, System.SR.Format(), System.Xml.XmlNode.NodeType, System.Xml.XmlNode.OwnerDocument, System.SR.XmlDocument_NoSchemaInfo, and System.SR.XPathDocument_SchemaSetNotAllowed.