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

◆ LoadDefaultAttribute()

XmlAttribute System.Xml.XmlLoader.LoadDefaultAttribute ( )
inlineprivate

Definition at line 247 of file XmlLoader.cs.

248 {
249 XmlReader reader = _reader;
250 XmlAttribute xmlAttribute = _doc.CreateDefaultAttribute(reader.Prefix, reader.LocalName, reader.NamespaceURI);
251 IXmlSchemaInfo schemaInfo = reader.SchemaInfo;
252 if (schemaInfo != null)
253 {
254 xmlAttribute.XmlName = _doc.AddAttrXmlName(xmlAttribute.Prefix, xmlAttribute.LocalName, xmlAttribute.NamespaceURI, schemaInfo);
255 }
257 if (xmlAttribute is XmlUnspecifiedAttribute xmlUnspecifiedAttribute)
258 {
259 xmlUnspecifiedAttribute.SetSpecified(f: false);
260 }
261 return xmlAttribute;
262 }
virtual XmlAttribute CreateDefaultAttribute(string? prefix, string localName, string? namespaceURI)
XmlName AddAttrXmlName(string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo)
XmlDocument _doc
Definition XmlLoader.cs:9
void LoadAttributeValue(XmlNode parent, bool direct)
Definition XmlLoader.cs:264

References System.Xml.XmlLoader._doc, System.Xml.XmlLoader._reader, System.Xml.XmlDocument.AddAttrXmlName(), System.Xml.XmlDocument.CreateDefaultAttribute(), System.Xml.Dictionary, System.Xml.XmlLoader.LoadAttributeValue(), System.Xml.XmlReader.LocalName, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.Prefix, and System.Xml.XmlReader.SchemaInfo.

Referenced by System.Xml.XmlLoader.LoadAttributeNode().