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

◆ FixXmlAttribute()

void System.Xml.XmlBaseReader.FixXmlAttribute ( XmlAttributeNode attributeNode)
inlineprotectedinherited

Definition at line 1588 of file XmlBaseReader.cs.

1589 {
1590 if (!(attributeNode.Prefix == "xml"))
1591 {
1592 return;
1593 }
1594 if (attributeNode.LocalName == "lang")
1595 {
1596 _nsMgr.AddLangAttribute(attributeNode.Value.GetString());
1597 }
1598 else if (attributeNode.LocalName == "space")
1599 {
1600 string @string = attributeNode.Value.GetString();
1601 if (@string == "preserve")
1602 {
1603 _nsMgr.AddSpaceAttribute(XmlSpace.Preserve);
1604 }
1605 else if (@string == "default")
1606 {
1607 _nsMgr.AddSpaceAttribute(XmlSpace.Default);
1608 }
1609 }
1610 }
readonly NamespaceManager _nsMgr

References System.Xml.XmlBaseReader._nsMgr, System.Xml.XmlBaseReader.NamespaceManager.AddLangAttribute(), System.Xml.XmlBaseReader.NamespaceManager.AddSpaceAttribute(), and System.Xml.Dictionary.

Referenced by System.Xml.XmlUTF8TextReader.ReadAttributes(), and System.Xml.XmlBinaryReader.ReadAttributes2().