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

◆ PrepareDefaultAttribute()

XmlAttribute System.Xml.XmlDocument.PrepareDefaultAttribute ( SchemaAttDef attdef,
string attrPrefix,
string attrLocalname,
string attrNamespaceURI )
inlineprivate

Definition at line 844 of file XmlDocument.cs.

845 {
848 xmlAttribute.InnerXml = attdef.DefaultValueRaw;
849 if (xmlAttribute is XmlUnspecifiedAttribute xmlUnspecifiedAttribute)
850 {
851 xmlUnspecifiedAttribute.SetSpecified(f: false);
852 }
853 return xmlAttribute;
854 }
void SetDefaultNamespace(string prefix, string localName, ref string namespaceURI)
virtual XmlAttribute CreateDefaultAttribute(string? prefix, string localName, string? namespaceURI)

References System.Xml.XmlDocument.CreateDefaultAttribute(), System.Xml.Dictionary, and System.Xml.XmlDocument.SetDefaultNamespace().

Referenced by System.Xml.XmlDocument.AddDefaultAttributes(), and System.Xml.XmlDocument.GetDefaultAttribute().