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

◆ GetDefaultAttribute()

XmlAttribute System.Xml.XmlDocument.GetDefaultAttribute ( XmlElement elem,
string attrPrefix,
string attrLocalname,
string attrNamespaceURI )
inlinepackage

Definition at line 1561 of file XmlDocument.cs.

1562 {
1565 if (schemaElementDecl != null && schemaElementDecl.AttDefs != null)
1566 {
1568 {
1569 SchemaAttDef value = attDef.Value;
1570 if ((value.Presence == SchemaDeclBase.Use.Default || value.Presence == SchemaDeclBase.Use.Fixed) && value.Name.Name == attrLocalname && ((dtdSchemaInfo.SchemaType == SchemaType.DTD && value.Name.Namespace == attrPrefix) || (dtdSchemaInfo.SchemaType != SchemaType.DTD && value.Name.Namespace == attrNamespaceURI)))
1571 {
1573 }
1574 }
1575 }
1576 return null;
1577 }
SchemaInfo? DtdSchemaInfo
XmlAttribute PrepareDefaultAttribute(SchemaAttDef attdef, string attrPrefix, string attrLocalname, string attrNamespaceURI)
SchemaElementDecl GetSchemaElementDecl(XmlElement elem)

References System.Xml.XmlDocument.DtdSchemaInfo, System.Xml.XmlDocument.GetSchemaElementDecl(), System.Xml.XmlDocument.PrepareDefaultAttribute(), and System.value.

Referenced by System.Xml.XmlAttributeCollection.RemoveNodeAt().