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

◆ ValidateElement()

void System.Xml.Schema.XNodeValidator.ValidateElement ( XElement e)
inlineprivate

Definition at line 321 of file XNodeValidator.cs.

322 {
323 XmlSchemaInfo xmlSchemaInfo = (addSchemaInfo ? new XmlSchemaInfo() : null);
324 string xsiType = null;
325 string xsiNil = null;
327 IXmlLineInfo originalLineInfo = SaveLineInfo(e);
328 source = e;
332 ValidateNodes(e);
334 if (addSchemaInfo)
335 {
336 if (xmlSchemaInfo.Validity == XmlSchemaValidity.Valid && xmlSchemaInfo.IsDefault)
337 {
338 e.Value = GetDefaultValue(xmlSchemaInfo.SchemaElement);
339 }
341 }
344 }
string NamespaceName
Definition XName.cs:18
XmlNamespaceManager namespaceManager
void RestoreLineInfo(IXmlLineInfo originalLineInfo)
void ReplaceSchemaInfo(XObject o, XmlSchemaInfo schemaInfo)
IXmlLineInfo SaveLineInfo(XObject source)
string GetDefaultValue(XmlSchemaAttribute sa)
void PushElement(XElement e, ref string xsiType, ref string xsiNil)
void ValidateElement(string localName, string namespaceUri, XmlSchemaInfo? schemaInfo)
object? ValidateEndElement(XmlSchemaInfo? schemaInfo)
void ValidateEndOfAttributes(XmlSchemaInfo? schemaInfo)

References System.Xml.Schema.XNodeValidator.addSchemaInfo, System.Xml.Dictionary, System.Xml.Schema.XNodeValidator.GetDefaultValue(), System.Xml.Linq.XName.LocalName, System.Xml.Linq.XElement.Name, System.Xml.Schema.XNodeValidator.namespaceManager, System.Xml.Linq.XName.NamespaceName, System.Xml.XmlNamespaceManager.PopScope(), System.Xml.Schema.XNodeValidator.PushElement(), System.Xml.Schema.XNodeValidator.ReplaceSchemaInfo(), System.Xml.Schema.XNodeValidator.RestoreLineInfo(), System.Xml.Schema.XNodeValidator.SaveLineInfo(), System.Xml.Schema.XNodeValidator.source, System.Xml.Schema.XNodeValidator.ValidateAttributes(), System.Xml.Schema.XmlSchemaValidator.ValidateElement(), System.Xml.Schema.XmlSchemaValidator.ValidateEndElement(), System.Xml.Schema.XmlSchemaValidator.ValidateEndOfAttributes(), System.Xml.Schema.XNodeValidator.ValidateNodes(), and System.Xml.Schema.XNodeValidator.validator.

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