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

◆ MoveToNextNamespace() [2/2]

override bool System.Xml.XPath.XNodeNavigator.MoveToNextNamespace ( XPathNamespaceScope scope)
inline

Definition at line 535 of file XNodeNavigator.cs.

536 {
538 if (xAttribute != null && _parent != null && !IsXmlNamespaceDeclaration(xAttribute))
539 {
540 switch (scope)
541 {
542 case XPathNamespaceScope.Local:
543 if (xAttribute.GetParent() != _parent)
544 {
545 return false;
546 }
548 break;
549 case XPathNamespaceScope.ExcludeXml:
550 do
551 {
553 }
554 while (xAttribute != null && (xAttribute.Name.LocalName == "xml" || HasNamespaceDeclarationInScope(xAttribute, _parent)));
555 break;
556 case XPathNamespaceScope.All:
557 do
558 {
560 }
563 {
565 }
566 break;
567 }
568 if (xAttribute != null)
569 {
571 return true;
572 }
573 }
574 return false;
575 }
static bool HasNamespaceDeclarationInScope(XAttribute a, XElement e)
static XAttribute GetXmlNamespaceDeclaration()
static XAttribute GetNextNamespaceDeclarationGlobal(XAttribute a)
static bool IsXmlNamespaceDeclaration(XAttribute a)
static XAttribute GetNextNamespaceDeclarationLocal(XAttribute a)

References System.Xml.XPath.XNodeNavigator._parent, System.Xml.XPath.XNodeNavigator._source, System.Xml.Dictionary, System.Xml.XPath.XNodeNavigator.GetNextNamespaceDeclarationGlobal(), System.Xml.XPath.XNodeNavigator.GetNextNamespaceDeclarationLocal(), System.Xml.XPath.XNodeNavigator.GetXmlNamespaceDeclaration(), System.Xml.XPath.XNodeNavigator.HasNamespaceDeclarationInScope(), and System.Xml.XPath.XNodeNavigator.IsXmlNamespaceDeclaration().