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

◆ ValidateAttribute()

void System.Xml.Schema.XNodeValidator.ValidateAttribute ( XAttribute a)
inlineprivate

Definition at line 270 of file XNodeValidator.cs.

271 {
272 IXmlLineInfo originalLineInfo = SaveLineInfo(a);
273 XmlSchemaInfo schemaInfo = (addSchemaInfo ? new XmlSchemaInfo() : null);
274 source = a;
275 validator.ValidateAttribute(a.Name.LocalName, a.Name.NamespaceName, a.Value, schemaInfo);
276 if (addSchemaInfo)
277 {
278 ReplaceSchemaInfo(a, schemaInfo);
279 }
281 }
void RestoreLineInfo(IXmlLineInfo originalLineInfo)
void ReplaceSchemaInfo(XObject o, XmlSchemaInfo schemaInfo)
IXmlLineInfo SaveLineInfo(XObject source)
object? ValidateAttribute(string localName, string namespaceUri, string attributeValue, XmlSchemaInfo? schemaInfo)

References System.Xml.Schema.XNodeValidator.addSchemaInfo, System.Xml.Dictionary, System.Xml.Schema.XNodeValidator.ReplaceSchemaInfo(), System.Xml.Schema.XNodeValidator.RestoreLineInfo(), System.Xml.Schema.XNodeValidator.SaveLineInfo(), System.Xml.Schema.XNodeValidator.source, System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(), and System.Xml.Schema.XNodeValidator.validator.

Referenced by System.Xml.Schema.XNodeValidator.Validate(), and System.Xml.Schema.XNodeValidator.ValidateAttributes().