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

◆ PushAncestorsAndSelf()

void System.Xml.Schema.XNodeValidator.PushAncestorsAndSelf ( XElement e)
inlineprivate

Definition at line 195 of file XNodeValidator.cs.

196 {
197 while (e != null)
198 {
200 if (xAttribute != null)
201 {
202 do
203 {
204 xAttribute = xAttribute.next;
205 if (xAttribute.IsNamespaceDeclaration)
206 {
207 string text = xAttribute.Name.LocalName;
208 if (text == "xmlns")
209 {
210 text = string.Empty;
211 }
213 {
215 }
216 }
217 }
218 while (xAttribute != e.lastAttr);
219 }
220 e = e.parent as XElement;
221 }
222 }
XmlNamespaceManager namespaceManager
virtual bool HasNamespace(string prefix)
virtual void AddNamespace(string prefix, string uri)

References System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.Dictionary, System.Xml.XmlNamespaceManager.HasNamespace(), System.Xml.Linq.XElement.lastAttr, System.Xml.Schema.XNodeValidator.namespaceManager, and System.text.

Referenced by System.Xml.Schema.XNodeValidator.Validate().