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

◆ ProcessNamespaces()

void System.Xml.XmlSubtreeReader.ProcessNamespaces ( )
inlineprivate

Definition at line 1096 of file XmlSubtreeReader.cs.

1097 {
1098 switch (reader.NodeType)
1099 {
1100 case XmlNodeType.Element:
1101 {
1103 string prefix = reader.Prefix;
1106 {
1108 }
1110 {
1111 do
1112 {
1115 if (Ref.Equal(namespaceURI, _xmlnsUri))
1116 {
1117 if (prefix.Length == 0)
1118 {
1120 RemoveNamespace(string.Empty, _xmlns);
1121 }
1122 else
1123 {
1127 }
1128 }
1129 else if (prefix.Length != 0 && _nsManager.LookupNamespace(prefix) != namespaceURI)
1130 {
1132 }
1133 }
1134 while (reader.MoveToNextAttribute());
1136 }
1138 {
1139 _state = State.PopNamespaceScope;
1140 }
1141 break;
1142 }
1143 case XmlNodeType.EndElement:
1144 _state = State.PopNamespaceScope;
1145 break;
1146 }
1147 }
virtual ? string LookupNamespace(string prefix)
virtual void AddNamespace(string prefix, string uri)
XmlNodeType NodeType
Definition XmlReader.cs:62
readonly XmlNamespaceManager _nsManager
void AddNamespace(string prefix, string ns)
void RemoveNamespace(string prefix, string localName)

References System.Xml.XmlSubtreeReader._nsManager, System.Xml.XmlSubtreeReader._state, System.Xml.XmlSubtreeReader._xmlns, System.Xml.XmlSubtreeReader._xmlnsUri, System.Xml.XmlSubtreeReader.AddNamespace(), System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.Ref.Equal(), System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.LocalName, System.Xml.XmlNamespaceManager.LookupNamespace(), System.Xml.XmlReader.MoveToElement(), System.Xml.XmlReader.MoveToFirstAttribute(), System.Xml.XmlReader.MoveToNextAttribute(), System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.prefix, System.Xml.XmlReader.Prefix, System.Xml.XmlNamespaceManager.PushScope(), System.Xml.XmlWrappingReader.reader, System.Xml.XmlSubtreeReader.RemoveNamespace(), and System.Xml.XmlReader.Value.

Referenced by System.Xml.XmlSubtreeReader.FinishReadContentAsBinary(), System.Xml.XmlSubtreeReader.FinishReadContentAsBinaryAsync(), System.Xml.XmlSubtreeReader.FinishReadContentAsType(), System.Xml.XmlSubtreeReader.FinishReadElementContentAsBinary(), System.Xml.XmlSubtreeReader.FinishReadElementContentAsBinaryAsync(), System.Xml.XmlSubtreeReader.InitReadElementContentAsBinary(), System.Xml.XmlSubtreeReader.InitReadElementContentAsBinaryAsync(), System.Xml.XmlSubtreeReader.Read(), System.Xml.XmlSubtreeReader.ReadAsync(), System.Xml.XmlSubtreeReader.ReadContentAsBase64(), System.Xml.XmlSubtreeReader.ReadContentAsBase64Async(), System.Xml.XmlSubtreeReader.ReadContentAsBinHex(), System.Xml.XmlSubtreeReader.ReadContentAsBinHexAsync(), System.Xml.XmlSubtreeReader.ReadElementContentAsBase64(), System.Xml.XmlSubtreeReader.ReadElementContentAsBase64Async(), System.Xml.XmlSubtreeReader.ReadElementContentAsBinHex(), System.Xml.XmlSubtreeReader.ReadElementContentAsBinHexAsync(), System.Xml.XmlSubtreeReader.Skip(), and System.Xml.XmlSubtreeReader.SkipAsync().